From 65a089fcb84ca42029d125794d16da0cb407304c Mon Sep 17 00:00:00 2001 From: Robert Bamler Date: Sun, 20 Oct 2024 19:33:01 +0200 Subject: [PATCH] Verify MSRV in CI --- .github/workflows/release.yaml | 10 ++++++++++ .github/workflows/test.yaml | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5c6a689..24c118a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -56,6 +56,16 @@ jobs: RUSTFLAGS: "-D warnings" run: cargo test --release + - name: "Install cargo-msrv" + uses: taiki-e/install-action@v2 + if: matrix.os != 'windows-latest' # work around https://github.com/foresterre/cargo-msrv/issues/1036 + 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..68447b8 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -68,6 +68,16 @@ jobs: RUSTFLAGS: "-D warnings" run: cargo test --release + - name: "Install cargo-msrv" + uses: taiki-e/install-action@v2 + if: matrix.os != 'windows-latest' # work around https://github.com/foresterre/cargo-msrv/issues/1036 + 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