Skip to content

Commit 239a6e0

Browse files
committed
ci: add cargo hack feature powerset test
This commit updates CI to use `cargo hack` to test the feature powerset, ensuring that we can catch feature interplay related breakages early. Unlike w/ the main Rustls repo the webpki powerset is small and the test completes in <30s, so it's fair to include in the default CI instead of needing to be separated into a separate daily tests workflow.
1 parent 177ff4f commit 239a6e0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,3 +292,21 @@ jobs:
292292

293293
- name: check no-std mode
294294
run: cargo check --target $NOSTD_TARGET ${{ matrix.features }}
295+
296+
feature-powerset:
297+
name: Feature Powerset
298+
runs-on: ubuntu-20.04
299+
steps:
300+
- name: Checkout sources
301+
uses: actions/checkout@v4
302+
with:
303+
persist-credentials: false
304+
305+
- name: Install stable toolchain
306+
uses: dtolnay/rust-toolchain@stable
307+
308+
- name: Install cargo hack
309+
uses: taiki-e/install-action@cargo-hack
310+
311+
- name: Check feature powerset
312+
run: cargo hack check --feature-powerset --no-dev-deps

0 commit comments

Comments
 (0)