Skip to content

Commit ae48c51

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 fc3b8bc commit ae48c51

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,8 @@ jobs:
9797
fail-fast: false
9898
matrix:
9999
os: [ubuntu-latest, windows-latest]
100-
# When updating this, the reminder to update the minimum supported
101-
# Rust version in Cargo.toml.
102-
rust: ['1.70']
103100
steps:
104101
- uses: actions/checkout@v4
105-
- name: Install Rust
106-
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
107-
- run: cargo build
102+
- name: Install cargo-hack
103+
uses: taiki-e/install-action@cargo-hack
104+
- run: cargo hack build --rust-version

0 commit comments

Comments
 (0)