Skip to content

Commit 8565cdd

Browse files
committed
Add MSRV minimal versions in CI
1 parent 5eecd0b commit 8565cdd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/rust.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ jobs:
6868
os: [ubuntu-latest, windows-latest, macOS-latest]
6969
steps:
7070
- uses: actions/checkout@v4
71+
- uses: dtolnay/rust-toolchain@nightly
72+
if: matrix.rust.name == 'MSRV'
73+
- name: cargo -Z minimal-versions update
74+
run: |
75+
cargo -Z minimal-versions update
76+
if: matrix.rust.name == 'MSRV'
7177
- uses: dtolnay/rust-toolchain@master
7278
with:
7379
toolchain: ${{matrix.rust.toolchain}}
@@ -78,7 +84,7 @@ jobs:
7884
~/.cargo/git
7985
~/.cargo/registry
8086
target
81-
key: "${{runner.os}} Rust ${{steps.rust-toolchain.outputs.cachekey}}"
87+
key: "${{matrix.rust.toolchain}} on ${{runner.os}} Rust ${{steps.rust-toolchain.outputs.cachekey}}"
8288
- run: cargo test --lib
8389
- run: cargo test --doc
8490

0 commit comments

Comments
 (0)