Skip to content

Commit 24510a7

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 d747bcd commit 24510a7

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
@@ -50,16 +50,11 @@ jobs:
5050

5151
msrv:
5252
runs-on: ubuntu-latest
53-
strategy:
54-
matrix:
55-
# When updating this, the reminder to update the minimum supported
56-
# Rust version in Cargo.toml.
57-
rust: ['1.61']
5853
steps:
5954
- uses: actions/checkout@v4
60-
- name: Install Rust
61-
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
62-
- run: cargo build
55+
- name: Install cargo-hack
56+
uses: taiki-e/install-action@cargo-hack
57+
- run: cargo hack build --rust-version
6358

6459
clippy:
6560
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)