Skip to content

Commit c82735f

Browse files
committed
ci: add wasm32-unknown-unknown build
1 parent c8e2b0e commit c82735f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ jobs:
6060
target: wasm32-wasi
6161
override: true
6262

63+
- name: Install Rust wasm32-unknown-unknown
64+
uses: actions-rs/[email protected]
65+
with:
66+
toolchain: stable
67+
target: wasm32-unknown-unknown
68+
override: true
69+
6370
- name: Install a recent version of clang
6471
run: |
6572
apt-get update
@@ -80,6 +87,11 @@ jobs:
8087
# TODO: ideally we would build `--workspace`, but not all crates compile for WASM
8188
run: cargo build --target=wasm32-wasi
8289

90+
- name: Build on wasm32-wasi
91+
# TODO: also run `cargo test`
92+
# TODO: ideally we would build `--workspace`, but not all crates compile for WASM
93+
run: cargo build --target=wasm32-unknown-unknown --features wasm-bindgen
94+
8395
check-rustdoc-links:
8496
name: Check rustdoc intra-doc links
8597
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)