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
3b08720796
commit
9f6f5d3188
|
@ -61,21 +61,13 @@ 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
|
|
||||||
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
|
|
||||||
- run: cargo build
|
|
||||||
- run: cargo build --features portable-atomic
|
|
||||||
- name: Install cargo-hack
|
- name: Install cargo-hack
|
||||||
uses: taiki-e/install-action@cargo-hack
|
uses: taiki-e/install-action@cargo-hack
|
||||||
- run: rustup target add thumbv7m-none-eabi
|
- run: cargo hack build --rust-version
|
||||||
- run: cargo hack build --target thumbv7m-none-eabi --no-default-features --no-dev-deps
|
- run: cargo hack build --features portable-atomic --rust-version
|
||||||
|
- run: cargo hack build --target thumbv7m-none-eabi --no-default-features --no-dev-deps --rust-version
|
||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in New Issue