Skip to content

Commit

Permalink
ci: Use cargo-hack's --rust-version flag for minrust job
Browse files Browse the repository at this point in the history
This respects rust-version field in Cargo.toml, so it removes the need
to manage MSRV in both the CI file and Cargo.toml.
  • Loading branch information
taiki-e committed Feb 23, 2024
1 parent 981fab2 commit 3c1121e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ on:
env:
RUSTFLAGS: -Dwarnings
RUST_BACKTRACE: 1
minrust: '1.56'

jobs:
test:
Expand All @@ -29,9 +28,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update ${{ env.minrust }} && rustup default ${{ env.minrust }}
- run: cargo check --workspace --all-features
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- run: cargo hack check --workspace --all-features --ignore-private --rust-version

no-std:
strategy:
Expand Down

0 comments on commit 3c1121e

Please sign in to comment.