From 3cb7cc01014d7b680a8be2c3069cec0c156ede6c Mon Sep 17 00:00:00 2001 From: Robert Bamler Date: Sun, 20 Oct 2024 19:24:57 +0200 Subject: [PATCH] Verify MSRV in CI --- .github/workflows/release.yaml | 9 +++++++++ .github/workflows/test.yaml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5c6a689..6cae46b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -56,6 +56,15 @@ jobs: RUSTFLAGS: "-D warnings" run: cargo test --release + - name: "Install cargo-msrv" + uses: taiki-e/install-action@v2 + with: + tool: cargo-msrv + + - name: "Verify minimum supported rust version (MSRV)" + if: matrix.os != 'windows-latest' # work around https://github.com/foresterre/cargo-msrv/issues/1036 + run: cargo msrv verify -- cargo check --all-features + - name: Test `no_std` compatibility shell: bash working-directory: ensure_no_std diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8ca5616..989baa4 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -68,6 +68,15 @@ jobs: RUSTFLAGS: "-D warnings" run: cargo test --release + - name: "Install cargo-msrv" + uses: taiki-e/install-action@v2 + with: + tool: cargo-msrv + + - name: "Verify minimum supported rust version (MSRV)" + if: matrix.os != 'windows-latest' # work around https://github.com/foresterre/cargo-msrv/issues/1036 + run: cargo msrv -- cargo check --all-features + - name: Test `no_std` compatibility shell: bash working-directory: ensure_no_std