Skip to content

Commit

Permalink
ci: Check MSRV in CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
FreezyLemon authored and YeungOnion committed Sep 9, 2024
1 parent 1ece934 commit 04ce395
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 04ce395

Please sign in to comment.