Skip to content

Commit

Permalink
ci: add cargo hack feature powerset test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cpu committed Sep 13, 2023
1 parent 177ff4f commit 239a6e0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,3 +292,21 @@ jobs:

- name: check no-std mode
run: cargo check --target $NOSTD_TARGET ${{ matrix.features }}

feature-powerset:
name: Feature Powerset
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable

- name: Install cargo hack
uses: taiki-e/install-action@cargo-hack

- name: Check feature powerset
run: cargo hack check --feature-powerset --no-dev-deps

0 comments on commit 239a6e0

Please sign in to comment.