Skip to content

Commit a851425

Browse files
committed
fix CI to use older deps with older toolchain
Older rust has a broken half-implementation of MSRV support, in that `cargo update` (or when no lockfile is present) will grab the lastest package, ignoring its MSRV, yet immediately complain that it can't build said package because its MSRV is too high.
1 parent 20252f9 commit a851425

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: .github/workflows/cargo-test.yml

+6
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ jobs:
4141
- name: Install MSRV toolchain
4242
run: rustup install 1.75.0 --profile minimal
4343

44+
# remove this once our MSRV is >= 1.84, which has the MSRV-aware resolver
45+
- name: fix deps for old rustc
46+
run: |
47+
rustup run 1.75.0 cargo update litemap --precise 0.7.4
48+
rustup run 1.75.0 cargo update zerofrom --precise 0.1.5
49+
4450
- name: Run cargo test
4551
run: rustup run 1.75.0 cargo test --all-features
4652

0 commit comments

Comments
 (0)