Skip to content

Commit 05d9aeb

Browse files
tottotoseanmonstar
authored andcommitted
refactor(ci): use cargo-minimal-versions to check minimal versions
1 parent 24c2837 commit 05d9aeb

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,16 @@ jobs:
2929
- run: cargo test --workspace
3030
- if: matrix.rust == 'nightly'
3131
run: cargo test --benches
32-
- name: Check minimal versions
33-
if: matrix.rust == 'nightly'
34-
run: |
35-
cargo clean
36-
cargo update -Z minimal-versions
37-
cargo check
32+
33+
minimal-versions:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: dtolnay/rust-toolchain@nightly
38+
- uses: dtolnay/rust-toolchain@stable
39+
- uses: taiki-e/install-action@cargo-hack
40+
- uses: taiki-e/install-action@cargo-minimal-versions
41+
- run: cargo minimal-versions check --workspace
3842

3943
MSRV:
4044
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)