Skip to content

Commit 8ec2f5b

Browse files
committed
ci: fix nightly rustfmt unavailability with --allow-downgrade
Some nightly builds temporarily lack rustfmt. Installing it explicitly with --allow-downgrade picks the nearest nightly that has the component.
1 parent 9d10713 commit 8ec2f5b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ jobs:
3232
steps:
3333
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # actions/checkout v6
3434
- uses: dtolnay/rust-toolchain@5b842231ba77f5c045dba54ac5560fed2db780e2 # dtolnay/rust-toolchain nightly
35-
with:
36-
components: rustfmt
35+
- run: rustup component add rustfmt --toolchain nightly --allow-downgrade
3736
- run: cargo +nightly fmt --all -- --check
3837

3938
clippy:

0 commit comments

Comments
 (0)