Skip to content

Commit 0656282

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 3fd31bb commit 0656282

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,11 @@ jobs:
5050
fail-fast: false
5151
matrix:
5252
os: [ubuntu-latest, windows-latest]
53-
# When updating this, the reminder to update the minimum supported
54-
# Rust version in Cargo.toml.
55-
rust: ['1.63']
5653
steps:
5754
- uses: actions/checkout@v4
58-
- name: Install Rust
59-
# --no-self-update is necessary because the windows environment cannot self-update rustup.exe.
60-
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
61-
- run: cargo build
55+
- name: Install cargo-hack
56+
uses: taiki-e/install-action@cargo-hack
57+
- run: cargo hack build --rust-version
6258

6359
clippy:
6460
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)