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.
This commit is contained in:
parent
08c7e163a0
commit
45272f9285
|
@ -66,17 +66,12 @@ jobs:
|
||||||
|
|
||||||
msrv:
|
msrv:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
# When updating this, the reminder to update the minimum supported
|
|
||||||
# Rust version in Cargo.toml.
|
|
||||||
rust: ['1.61']
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install Rust
|
- name: Install cargo-hack
|
||||||
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
|
uses: taiki-e/install-action@cargo-hack
|
||||||
- run: cargo build --all
|
- run: cargo hack build --all --rust-version
|
||||||
- run: cargo build --all --no-default-features
|
- run: cargo hack build --all --no-default-features --rust-version
|
||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in New Issue