Skip to content

Commit dbd916c

Browse files
committed
chore(workflows/CI): directly install rust components
instead of manually calling rustup
1 parent 633fab7 commit dbd916c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ jobs:
3939
- uses: actions/checkout@v4
4040
- uses: rui314/setup-mold@v1
4141
- uses: dtolnay/rust-toolchain@stable
42-
- run: rustup component add clippy
42+
with:
43+
components: clippy
4344
- uses: Swatinem/rust-cache@v2
4445
with:
4546
shared-key: "build"
@@ -68,7 +69,7 @@ jobs:
6869
- uses: dtolnay/rust-toolchain@stable
6970
with:
7071
toolchain: nightly
71-
- run: rustup component add rustfmt
72+
components: rustfmt
7273
- run: cargo fmt --all -- --check
7374

7475
release:

0 commit comments

Comments
 (0)