Skip to content

Commit

Permalink
ci: pin nightly toolchain when using minimal-versions (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
conradoplg authored Oct 2, 2024
1 parent dcf1773 commit d31257f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ jobs:

steps:
- uses: actions/[email protected]
# Re-resolve Cargo.lock with minimal versions
- uses: dtolnay/rust-toolchain@nightly
# Re-resolve Cargo.lock with minimal versions.
# This only works with nightly. We pin to a specific version because
# newer versions use lock file version 4, but the MSRV cargo does not
# support that.
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-09-20
- run: cargo update -Z minimal-versions
# Now check that `cargo build` works with respect to the oldest possible
# deps and the stated MSRV
Expand Down

0 comments on commit d31257f

Please sign in to comment.