Skip to content

Commit e018d86

Browse files
committed
ci: try to fix "Ensure compatibility with rust-gpu nightly rust version" check.
1 parent f0fbff0 commit e018d86

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@ jobs:
2121
# FIXME(eddyb) `style_edition = "2024"` in `rustfmt.toml` is what keeps
2222
# this on `nightly`, should switch to `stable` when that stabilizes.
2323
toolchain: nightly
24-
override: true
24+
# HACK(eddyb) allow `+nightly` to work without breaking the ability
25+
# to use `rust-toolchain.toml` later.
26+
override: false
2527

2628
# run cargo fetch w/ --locked to verify Cargo.lock is up-to-date
2729
- run: cargo fetch --locked
2830

2931
# make sure all code has been formatted with rustfmt
3032
- name: check rustfmt
3133
run: |
32-
rustup component add rustfmt
33-
cargo fmt -- --check --color always
34+
rustup component add rustfmt --toolchain=nightly
35+
cargo +nightly fmt -- --check --color always
3436
3537
# run clippy to verify we have no warnings
3638
- name: cargo clippy

0 commit comments

Comments
 (0)