Skip to content

Commit a13d111

Browse files
committed
make target a matrix dimension
1 parent 2e84eb5 commit a13d111

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/clippy.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
profile:
2626
- dev
2727
- release
28+
target:
29+
- host
30+
- wasm32
2831
steps:
2932
- uses: actions/checkout@v6
3033

@@ -33,7 +36,7 @@ jobs:
3336
with:
3437
toolchain: stable
3538
components: clippy
36-
targets: wasm32-unknown-unknown
39+
targets: ${{ case(matrix.target == 'wasm32', 'wasm32-unknown-unknown', null) }}
3740

3841
- uses: Swatinem/rust-cache@v2
3942
with:
@@ -44,14 +47,14 @@ jobs:
4447
- name: Lint feature soundness
4548
env:
4649
RELEASE_FLAG: ${{ case(matrix.profile == 'release', '--release', null) }}
50+
TARGET_FLAGS: ${{ case(matrix.target == 'wasm32', '--target wasm32-unknown-unknown', null) }}
4751
run: >-
4852
cargo hack clippy
4953
-p yew -p yew-agent -p yew-router
5054
--feature-powerset --no-dev-deps
5155
--keep-going
5256
$RELEASE_FLAG
53-
--target `rustc --version --verbose | sed -n 's/host: //p'`
54-
--target wasm32-unknown-unknown
57+
$TARGET_FLAGS
5558
-- -D warnings
5659
5760
clippy:

0 commit comments

Comments
 (0)