Skip to content

Commit

Permalink
Add MSRV minimal versions in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Empty2k12 committed Dec 13, 2024
1 parent 5eecd0b commit 4b5b20b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ jobs:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
if: matrix.rust.name == 'MSRV'
with:
toolchain: nightly-2022-11-05
- name: cargo -Z minimal-versions update
run: |
cargo -Z minimal-versions update
if: matrix.rust.name == 'MSRV'
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust.toolchain}}
Expand All @@ -78,7 +86,7 @@ jobs:
~/.cargo/git
~/.cargo/registry
target
key: "${{runner.os}} Rust ${{steps.rust-toolchain.outputs.cachekey}}"
key: "${{matrix.rust.toolchain}} on ${{runner.os}} Rust ${{steps.rust-toolchain.outputs.cachekey}}"
- run: cargo test --lib
- run: cargo test --doc

Expand Down

0 comments on commit 4b5b20b

Please sign in to comment.