From 145d57751ecc2f40b544ac6bb3017f56e1626825 Mon Sep 17 00:00:00 2001 From: FreezyLemon Date: Tue, 27 Aug 2024 12:47:39 +0200 Subject: [PATCH] ci: Check MSRV in CI job --- .github/workflows/test.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1b0a2eca..88b02134 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,8 +38,20 @@ jobs: - name: Run rustfmt --check run: cargo fmt -- --check + msrv: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install cargo-hack + uses: taiki-e/install-action@cargo-hack + - uses: Swatinem/rust-cache@v2 + - name: Use predefined lockfile + run: mv -v Cargo.lock.MSRV Cargo.lock + - name: Build (lib only) + run: cargo hack check --rust-version --locked + test: - needs: [clippy, fmt] + needs: [clippy, fmt, msrv] runs-on: ${{ matrix.os }} strategy: matrix: