Skip to content

Commit 51908bd

Browse files
committed
ci: Use cargo-hack's --rust-version flag for msrv check
This respects rust-version field in Cargo.toml, so it removes the need to manage MSRV in both the CI file and Cargo.toml.
1 parent abb80b9 commit 51908bd

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,12 @@ jobs:
4949

5050
msrv:
5151
runs-on: ubuntu-latest
52-
strategy:
53-
matrix:
54-
# When updating this, the reminder to update the minimum supported
55-
# Rust version in Cargo.toml.
56-
rust: ['1.61']
5752
steps:
5853
- uses: actions/checkout@v4
59-
- name: Install Rust
60-
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
61-
- run: cargo build
54+
- name: Install cargo-hack
55+
uses: taiki-e/install-action@cargo-hack
56+
# memchr feature can have a higher MSRV.
57+
- run: cargo hack build --feature-powerset --skip memchr --rust-version
6258

6359
clippy:
6460
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)