Skip to content

Commit 1f1fd8b

Browse files
committed
CI: prospective fix for MSRV build
Some dependent crate have a higher MSRV, so use the msrv aware resolver when building for the MSRV (even though that version of rust didn't have that resolver yet in stable)
1 parent 99d0a80 commit 1f1fd8b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/rust.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ jobs:
3131
with:
3232
toolchain: ${{ matrix.rust }}
3333
components: rustfmt, clippy
34+
- name: Install nightly for minimal-versions
35+
if: matrix.rust == '1.65.0'
36+
uses: dtolnay/rust-toolchain@nightly
37+
- name: Generate minimal-versions lockfile
38+
if: matrix.rust == '1.65.0'
39+
run: cargo +nightly -Z minimal-versions generate-lockfile
3440
- name: Build
3541
run: cargo build --verbose
3642
- name: Run tests

0 commit comments

Comments
 (0)