Skip to content

Commit 8619491

Browse files
committed
ci: test wasm32-unknown-unknown target
Extend the makefile and the GitHub Actions to check also building for the wasm32-unknown-unknown target Signed-off-by: Flavio Castelli <[email protected]>
1 parent b3437c1 commit 8619491

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/tests.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,20 @@ jobs:
8181
- run: |
8282
cargo test --workspace --no-default-features --features full,rustls-tls,test-registry
8383
84+
check-wasm:
85+
name: Check wasm32-unknown-unknown target
86+
runs-on: ubuntu-latest
87+
steps:
88+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
89+
with:
90+
persist-credentials: false
91+
- uses: dtolnay/rust-toolchain@351f82a4dc29e4159746a068ed925da17341219f # 1.89.0
92+
with:
93+
targets: wasm32-unknown-unknown
94+
- uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1
95+
- run: |
96+
cargo check --no-default-features --features wasm --target wasm32-unknown-unknown
97+
8498
doc:
8599
name: Build Documentation
86100
runs-on: ubuntu-latest

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ check-features-native-tls:
2727
check-features-rustls-tls:
2828
cargo hack check --feature-powerset --features rustls-tls --skip wasm --skip test-registry --skip native-tls --skip rustls-tls-native-roots
2929

30+
.PHONY: check-wasm
31+
check-wasm:
32+
cargo check --no-default-features --features wasm --target wasm32-unknown-unknown
33+
3034
.PHONY: test
3135
test: fmt lint doc
3236
cargo test --workspace --no-default-features --features full,native-tls,test-registry

0 commit comments

Comments
 (0)