Skip to content

Commit

Permalink
add cargo hack for feature combinations check
Browse files Browse the repository at this point in the history
  • Loading branch information
segfault-magnet committed Oct 29, 2024
1 parent 6ef65f9 commit 8df8834
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,24 @@ jobs:
- name: Unit/integration tests
run: cargo test --workspace --exclude e2e

additional-check-for-published-crates:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_VERSION }}

- name: Run cargo hack to check for invalid feature flag combinations
uses: taiki-e/install-action@cargo-hack
working-directory: packages/encoding
run: cargo hack --feature-powerset --no-dev-deps check

e2e-release-build:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -315,6 +333,7 @@ jobs:
publish:
needs:
- cargo-verifications
- additional-check-for-published-crates
- publish-crates-check
# Only do this job if publishing a release
if: github.event_name == 'release' && github.event.action == 'published'
Expand Down

0 comments on commit 8df8834

Please sign in to comment.