Skip to content

Commit 4e645fe

Browse files
committed
Use a nightly toolchain that still generates v3 lockfiles for minimal-versions check
1 parent 659cb32 commit 4e645fe

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@v4
23-
- uses: dtolnay/rust-toolchain@nightly
23+
- uses: dtolnay/rust-toolchain@master
24+
with:
25+
# Use a nightly version that is known to generate v3 lockfile
26+
# versions, this is only supported since Rust 1.78 and will be the
27+
# default starting with Rust 1.83:
28+
# https://doc.rust-lang.org/nightly/cargo/CHANGELOG.html#cargo-178-2024-05-02
29+
# https://doc.rust-lang.org/nightly/cargo/CHANGELOG.html#cargo-183-2024-11-28
30+
toolchain: nightly-2024-09-01
2431
- name: Generate minimal-version dependencies
2532
run: cargo -Zminimal-versions generate-lockfile
2633
- uses: dtolnay/[email protected]

0 commit comments

Comments
 (0)