Skip to content

Commit

Permalink
ci: try to fix "Ensure compatibility with rust-gpu nightly rust versi…
Browse files Browse the repository at this point in the history
…on" check.
  • Loading branch information
eddyb committed Oct 3, 2024
1 parent f0fbff0 commit e018d86
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,18 @@ jobs:
# FIXME(eddyb) `style_edition = "2024"` in `rustfmt.toml` is what keeps
# this on `nightly`, should switch to `stable` when that stabilizes.
toolchain: nightly
override: true
# HACK(eddyb) allow `+nightly` to work without breaking the ability
# to use `rust-toolchain.toml` later.
override: false

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

# make sure all code has been formatted with rustfmt
- name: check rustfmt
run: |
rustup component add rustfmt
cargo fmt -- --check --color always
rustup component add rustfmt --toolchain=nightly
cargo +nightly fmt -- --check --color always
# run clippy to verify we have no warnings
- name: cargo clippy
Expand Down

0 comments on commit e018d86

Please sign in to comment.