Skip to content

Commit 8f2c088

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 cb8fc14 commit 8f2c088

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,11 @@ jobs:
6464

6565
msrv:
6666
runs-on: ubuntu-latest
67-
strategy:
68-
matrix:
69-
# When updating this, the reminder to update the minimum supported
70-
# Rust version in Cargo.toml.
71-
rust: ['1.57']
7267
steps:
7368
- uses: actions/checkout@v4
74-
- name: Install Rust
75-
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
76-
- run: cargo build
69+
- name: Install cargo-hack
70+
uses: taiki-e/install-action@cargo-hack
71+
- run: cargo hack build --feature-powerset --no-dev-deps --rust-version
7772

7873
clippy:
7974
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)