From 29a163a01bb57d19698cc9a868cf024351284a5f Mon Sep 17 00:00:00 2001 From: Gero Gerke Date: Fri, 13 Dec 2024 16:52:08 +0100 Subject: [PATCH] Add MSRV minimal versions in CI --- .github/workflows/rust.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1e44302..317e255 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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-03 + - 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}} @@ -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