Skip to content

Commit 07e32d9

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 97da7a1 commit 07e32d9

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
@@ -111,15 +111,11 @@ jobs:
111111
fail-fast: false
112112
matrix:
113113
os: [ubuntu-latest, windows-latest]
114-
# When updating this, the reminder to update the minimum supported
115-
# Rust version in Cargo.toml.
116-
rust: ['1.63']
117114
steps:
118115
- uses: actions/checkout@v4
119-
- name: Install Rust
120-
# --no-self-update is necessary because the windows environment cannot self-update rustup.exe.
121-
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
122-
- run: cargo build
116+
- name: Install cargo-hack
117+
uses: taiki-e/install-action@cargo-hack
118+
- run: cargo hack build --no-dev-deps --rust-version
123119

124120
clippy:
125121
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)