Skip to content

Commit bdb819d

Browse files
epageeopb
authored andcommitted
chore(ci): Actually verify MSRV
1 parent 660af3c commit bdb819d

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.github/workflows/rust.yml

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

0 commit comments

Comments
 (0)