From e448eadbcf081dd9adbae3a7a51a9c12bbeec8e9 Mon Sep 17 00:00:00 2001 From: Robert Bamler Date: Sun, 20 Oct 2024 18:50:46 +0200 Subject: [PATCH] Verify MSRV in CI --- .github/workflows/release.yaml | 8 ++++++++ .github/workflows/test.yaml | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5c6a689..370d55a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -56,6 +56,14 @@ 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)" + 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..52b1d94 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -68,6 +68,13 @@ 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)" + run: cargo msrv --log-level debug --output-format json verify -- cargo check --all-features - name: Test `no_std` compatibility shell: bash working-directory: ensure_no_std