Skip to content

Commit 2c91433

Browse files
committed
CI: Merge build and test jobs to avoid artifact upload
1 parent 25ff3d9 commit 2c91433

File tree

1 file changed

+4
-41
lines changed

1 file changed

+4
-41
lines changed

.github/workflows/build.yml

+4-41
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ on:
1111
pull_request:
1212

1313
jobs:
14-
build:
15-
name: "Build"
14+
test:
15+
name: "Test"
1616

1717
strategy:
1818
matrix:
@@ -57,45 +57,8 @@ jobs:
5757
- name: "Install it"
5858
run: cargo install --path .
5959

60-
- name: "Upload Artifact"
61-
uses: actions/upload-artifact@v2
62-
with:
63-
name: ${{ env.name }}-bootimage
64-
path: ~/.cargo/bin/
65-
66-
test:
67-
name: "Test"
68-
needs: build
69-
70-
strategy:
71-
matrix:
72-
platform: [
73-
ubuntu-latest,
74-
macos-latest,
75-
windows-latest
76-
]
77-
78-
runs-on: ${{ matrix.platform }}
79-
timeout-minutes: 15
80-
81-
steps:
82-
- name: "Checkout Repository"
83-
uses: actions/checkout@v1
84-
85-
- name: "Download Bootimage Artifact"
86-
uses: actions/download-artifact@v2
87-
with:
88-
name: ${{ env.name }}-bootimage
89-
path: bin/
90-
91-
- name: "Add `bin` to PATH"
92-
run: echo ::add-path::bin
93-
94-
- name: Install Rustup (macOS)
95-
run: |
96-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
97-
echo ::add-path::$HOME/.cargo/bin
98-
if: runner.os == 'macOS'
60+
- name: "Switch to Rust nightly"
61+
run: rustup default nightly
9962

10063
- name: "Install Rustup Components"
10164
run: rustup component add rust-src llvm-tools-preview

0 commit comments

Comments
 (0)