Skip to content

Commit

Permalink
Merge pull request #66 from eopb/push-pnxxpnoxnwqm
Browse files Browse the repository at this point in the history
ci: use `cargo hack` to check msrv
  • Loading branch information
eopb authored Sep 8, 2024
2 parents 931019c + 15cf26b commit 0edf3f9
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,12 @@ jobs:
- name: cargo check
run: cargo check --locked --all-features
msrv:
name: "Check MSRV"
runs-on: ubuntu-latest
# we use a matrix here just because env can't be used in job names
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
strategy:
matrix:
msrv: [1.65.0]
name: ubuntu / ${{ matrix.msrv }}
steps:
- uses: actions/checkout@v3
- name: Install ${{ matrix.msrv }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.msrv }}
- name: cargo +${{ matrix.msrv }} check
run: cargo check --all-features
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@cargo-hack
- name: Default features
run: cargo hack check --feature-powerset --rust-version --ignore-private --workspace --all-targets

0 comments on commit 0edf3f9

Please sign in to comment.