From 8565cdda4f87d366f7e89e31a99bac031db6488c 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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1e44302..02bd810 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -68,6 +68,12 @@ jobs: os: [ubuntu-latest, windows-latest, macOS-latest] steps: - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@nightly + if: matrix.rust.name == 'MSRV' + - 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 +84,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