Skip to content

Commit fb47ab1

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 e243d55 commit fb47ab1

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,12 @@ jobs:
5959

6060
msrv:
6161
runs-on: ubuntu-latest
62-
strategy:
63-
matrix:
64-
# When updating this, the reminder to update the minimum supported
65-
# Rust version in Cargo.toml.
66-
rust: ['1.59']
6762
steps:
6863
- uses: actions/checkout@v4
69-
- name: Install Rust
70-
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
71-
- run: cargo build
72-
- run: cargo build --no-default-features
64+
- name: Install cargo-hack
65+
uses: taiki-e/install-action@cargo-hack
66+
- run: cargo hack build --rust-version
67+
- run: cargo hack build --no-default-features --rust-version
7368

7469
clippy:
7570
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)