Skip to content

Commit 9ddeaaa

Browse files
committed
Use the components key of the toolchain action
Instead of installing the rustup components manually. This way, we choose a nightly that has the required components, so that no error occurs when the latest nightly misses some components.
1 parent bc3a136 commit 9ddeaaa

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ jobs:
3737
with:
3838
profile: minimal
3939
override: true
40-
41-
- name: "Install Rustup Components"
42-
run: rustup component add rust-src llvm-tools-preview
40+
components: rust-src, llvm-tools-preview
4341

4442
# install QEMU
4543
- name: Install QEMU (Linux)
@@ -79,7 +77,7 @@ jobs:
7977
with:
8078
profile: minimal
8179
override: true
82-
- run: rustup component add rustfmt
80+
components: rustfmt
8381
- name: Run `cargo fmt --all -- --check`
8482
uses: actions-rs/cargo@v1
8583
with:
@@ -95,7 +93,7 @@ jobs:
9593
with:
9694
profile: minimal
9795
override: true
98-
- run: rustup component add clippy
96+
components: clippy
9997
- name: Run `cargo clippy`
10098
uses: actions-rs/cargo@v1
10199
with:

0 commit comments

Comments
 (0)