Skip to content

Commit

Permalink
use cargo-hack to check feature sets
Browse files Browse the repository at this point in the history
  • Loading branch information
grimerssy committed Aug 18, 2024
1 parent d0cb9fc commit 8c04a56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,17 @@ env:

jobs:
check:
name: check ${{ matrix.features }}
name: check
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
features: ["", "std", "zeroize", "std,zeroize"]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy --no-default-features -F "${{ matrix.features }}" --tests
- uses: taiki-e/install-action@v2
with:
tool: cargo-hack
- run: cargo hack check --feature-powerset

test:
name: test ${{matrix.os}}-${{ matrix.rust }}
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
(rust-bin.stable.latest.default.override {
extensions = [ "rust-src" "clippy" "rust-analyzer" ];
})
cargo-hack
];
};
}
Expand Down

0 comments on commit 8c04a56

Please sign in to comment.