Skip to content

Commit 916999d

Browse files
committed
ci: Add minimal-versions check
1 parent d120bb2 commit 916999d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,13 @@ jobs:
4848
- name: Install Rust
4949
# --no-self-update is necessary because the windows environment cannot self-update rustup.exe.
5050
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
51+
- name: Install cargo-hack and cargo-minimal-versions
52+
uses: taiki-e/install-action@v2
53+
with:
54+
tool: cargo-hack,cargo-minimal-versions
5155
- run: cargo build --all --all-features --all-targets
52-
- name: Run cargo check (without dev-dependencies to catch missing feature flags)
53-
if: startsWith(matrix.rust, 'nightly')
54-
run: cargo check -Z features=dev_dep
56+
- run: cargo hack build --feature-powerset --no-dev-deps
57+
- run: cargo minimal-versions build --all --all-features
5558
- run: cargo test
5659

5760
msrv:

0 commit comments

Comments
 (0)