Skip to content

Commit 0edf3f9

Browse files
authored
Merge pull request #66 from eopb/push-pnxxpnoxnwqm
ci: use `cargo hack` to check msrv
2 parents 931019c + 15cf26b commit 0edf3f9

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/rust.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,12 @@ jobs:
5353
- name: cargo check
5454
run: cargo check --locked --all-features
5555
msrv:
56+
name: "Check MSRV"
5657
runs-on: ubuntu-latest
57-
# we use a matrix here just because env can't be used in job names
58-
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
59-
strategy:
60-
matrix:
61-
msrv: [1.65.0]
62-
name: ubuntu / ${{ matrix.msrv }}
6358
steps:
6459
- uses: actions/checkout@v3
65-
- name: Install ${{ matrix.msrv }}
66-
uses: dtolnay/rust-toolchain@master
67-
with:
68-
toolchain: ${{ matrix.msrv }}
69-
- name: cargo +${{ matrix.msrv }} check
70-
run: cargo check --all-features
60+
- uses: dtolnay/rust-toolchain@stable
61+
- uses: Swatinem/rust-cache@v2
62+
- uses: taiki-e/install-action@cargo-hack
63+
- name: Default features
64+
run: cargo hack check --feature-powerset --rust-version --ignore-private --workspace --all-targets

0 commit comments

Comments
 (0)