Skip to content

Commit 4b5b20b

Browse files
committed
Add MSRV minimal versions in CI
1 parent 5eecd0b commit 4b5b20b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Diff for: .github/workflows/rust.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ jobs:
6868
os: [ubuntu-latest, windows-latest, macOS-latest]
6969
steps:
7070
- uses: actions/checkout@v4
71+
- uses: dtolnay/rust-toolchain@master
72+
if: matrix.rust.name == 'MSRV'
73+
with:
74+
toolchain: nightly-2022-11-05
75+
- name: cargo -Z minimal-versions update
76+
run: |
77+
cargo -Z minimal-versions update
78+
if: matrix.rust.name == 'MSRV'
7179
- uses: dtolnay/rust-toolchain@master
7280
with:
7381
toolchain: ${{matrix.rust.toolchain}}
@@ -78,7 +86,7 @@ jobs:
7886
~/.cargo/git
7987
~/.cargo/registry
8088
target
81-
key: "${{runner.os}} Rust ${{steps.rust-toolchain.outputs.cachekey}}"
89+
key: "${{matrix.rust.toolchain}} on ${{runner.os}} Rust ${{steps.rust-toolchain.outputs.cachekey}}"
8290
- run: cargo test --lib
8391
- run: cargo test --doc
8492

0 commit comments

Comments
 (0)