Skip to content

Commit e67635f

Browse files
authored
ci: add feature powerset checks (#172)
1 parent 0509663 commit e67635f

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,34 @@ jobs:
5252

5353
- name: Run tests
5454
run: just test
55+
56+
feature-powerset:
57+
name: Feature powerset (${{ matrix.partition }})
58+
runs-on: ubuntu-latest
59+
timeout-minutes: 30
60+
strategy:
61+
fail-fast: false
62+
matrix:
63+
partition: ["1/4", "2/4", "3/4", "4/4"]
64+
65+
steps:
66+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
67+
with:
68+
persist-credentials: false
69+
70+
- name: Setup Rust
71+
uses: actions-rust-lang/setup-rust-toolchain@46268bd060767258de96ed93c1251119784f2ab6
72+
with:
73+
toolchain: stable
74+
75+
- name: Install cargo-hack
76+
uses: taiki-e/install-action@c070f87102a1c75b3183910f391c1cb887fe13c8
77+
with:
78+
tool: cargo-hack
79+
80+
- name: Check feature powerset
81+
# `default` is empty and `unstable` is an aggregate alias for the
82+
# individual unstable_* features, so excluding both avoids checking
83+
# duplicate combinations. The regular CI all-features build still covers
84+
# the aggregate feature.
85+
run: cargo hack check --workspace --feature-powerset --exclude-features default,unstable --no-dev-deps --partition ${{ matrix.partition }}

0 commit comments

Comments
 (0)