Skip to content

Commit 70eb298

Browse files
committed
cargo hack
1 parent 395874e commit 70eb298

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/check.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
with:
8484
version: ${{ matrix.rust-toolchain }}
8585
components: ${{ matrix.rust-toolchain == 'stable' && 'llvm-tools' || '' }} ${{ matrix.rust-toolchain == 'nightly' && startsWith(matrix.os, 'ubuntu') && !endsWith(matrix.os, 'arm') && 'rust-src ' || '' }}
86-
tools: ${{ matrix.rust-toolchain == 'stable' && 'cargo-llvm-cov' || '' }} ${{ matrix.rust-toolchain == 'nightly' && startsWith(matrix.os, 'ubuntu') && !endsWith(matrix.os, 'arm') && 'cargo-careful ' || '' }}
86+
tools: ${{ matrix.rust-toolchain == 'stable' && 'cargo-llvm-cov' || '' }} ${{ matrix.rust-toolchain == 'nightly' && startsWith(matrix.os, 'ubuntu') && !endsWith(matrix.os, 'arm') && 'cargo-careful ' || '' }} cargo-hack
8787
token: ${{ secrets.GITHUB_TOKEN }}
8888

8989
- uses: mozilla/actions/nss@25cb84d060946c0ad6d2c3f79da479b16d180d71 # v1.1.0
@@ -96,6 +96,11 @@ jobs:
9696
# shellcheck disable=SC2086
9797
cargo check $BUILD_TYPE --locked --all-targets
9898
99+
- name: Check feature powerset
100+
run: |
101+
# shellcheck disable=SC2086
102+
cargo hack check $BUILD_TYPE --locked --feature-powerset --no-dev-deps --exclude-features gecko
103+
99104
- name: Run tests and determine coverage
100105
env:
101106
RUST_LOG: trace
@@ -119,6 +124,11 @@ jobs:
119124
cargo $CAREFUL test $BUILD_TYPE --locked $TRIPLE
120125
fi
121126
127+
- name: Test with blapi feature
128+
run: |
129+
# shellcheck disable=SC2086
130+
cargo test $BUILD_TYPE --locked --features blapi
131+
122132
- name: CodeCov Windows workaround
123133
if: ${{ startsWith(matrix.os, 'windows') && matrix.type == 'debug' && matrix.rust-toolchain == 'stable' }}
124134
run: |

0 commit comments

Comments
 (0)