Skip to content

Commit c524869

Browse files
FreezyLemonYeungOnion
authored andcommitted
ci: Check MSRV in CI job
1 parent 2c00318 commit c524869

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,20 @@ jobs:
3838
- name: Run rustfmt --check
3939
run: cargo fmt -- --check
4040

41+
msrv:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v4
45+
- name: Install cargo-hack
46+
uses: taiki-e/install-action@cargo-hack
47+
- uses: Swatinem/rust-cache@v2
48+
- name: Use predefined lockfile
49+
run: mv -v Cargo.lock.MSRV Cargo.lock
50+
- name: Build (lib only)
51+
run: cargo hack check --rust-version --locked
52+
4153
test:
42-
needs: [clippy, fmt]
54+
needs: [clippy, fmt, msrv]
4355
runs-on: ${{ matrix.os }}
4456
strategy:
4557
matrix:

0 commit comments

Comments
 (0)