Skip to content

Commit daa77d9

Browse files
chore(ci): add cargo-hack job
1 parent fda2e4a commit daa77d9

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,21 @@ jobs:
3939
- name: Run clippy
4040
run: cargo clippy --all-features -- -D warnings
4141

42+
cargo-hack:
43+
name: cargo-hack / 1.87.0
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v4
47+
48+
- uses: dtolnay/rust-toolchain@1.87.0
49+
50+
- uses: taiki-e/install-action@v2
51+
with:
52+
tool: cargo-hack@0.6.36
53+
54+
- name: Run cargo-hack
55+
run: cargo hack check --feature-powerset --no-dev-deps
56+
4257
test:
4358
name: test / ${{ matrix.name }}
4459
runs-on: ubuntu-latest

.gitlab-ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ rust:clippy:
2626
script:
2727
- cargo clippy --all-features -- -D warnings
2828

29+
rust:hack:
30+
stage: test
31+
image: rust:1.87-alpine3.22
32+
before_script:
33+
- apk add musl-dev cargo-hack
34+
script:
35+
- cargo hack check --feature-powerset --no-dev-deps
36+
2937
rust:test:
3038
stage: test
3139
image: rust:1.87-alpine3.22

0 commit comments

Comments
 (0)