Skip to content

Commit 8f597aa

Browse files
committed
ci: add 'cargo hack check' step
Ensure that our stated Rust version compatibility stays correct over time. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
1 parent 034d07a commit 8f597aa

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323

2424
- uses: Swatinem/rust-cache@v2
2525

26+
- uses: taiki-e/install-action@cargo-hack
27+
2628
# Build first — catches template include_str! failures and compile errors
2729
# before running the slower test step.
2830
- name: Build
@@ -31,15 +33,18 @@ jobs:
3133
- name: Check formatting
3234
run: cargo fmt --check
3335

34-
- name: Clippy
36+
- name: Run clippy
3537
run: cargo clippy --all-targets -- -D warnings
3638

37-
- name: Audit
39+
- name: Cargo audit
3840
uses: rustsec/audit-check@858dc40f52ca2b8570b7a997c1c4e35c6fc9a432
3941
with:
4042
token: ${{ secrets.GITHUB_TOKEN }}
4143

4244
# Integration tests invoke the binary and compile the generated C.
4345
# gcc is pre-installed on ubuntu-latest.
44-
- name: Test
46+
- name: Run test suite
4547
run: cargo test --release
48+
49+
- name: Check Rust version compatibility
50+
run: cargo hack check --rust-version --all-targets

0 commit comments

Comments
 (0)