From 398b9795c3ff2f747e9ca3a323a68d97c2b03881 Mon Sep 17 00:00:00 2001 From: wngr Date: Mon, 27 Sep 2021 14:45:22 +0200 Subject: [PATCH] ci: add wasm32-unknown-unknown build --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4148477108..65a78db1990 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,6 +60,13 @@ jobs: target: wasm32-wasi override: true + - name: Install Rust wasm32-unknown-unknown + uses: actions-rs/toolchain@v1.0.7 + with: + toolchain: stable + target: wasm32-unknown-unknown + override: true + - name: Install a recent version of clang run: | apt-get update @@ -80,6 +87,11 @@ jobs: # TODO: ideally we would build `--workspace`, but not all crates compile for WASM run: cargo build --target=wasm32-wasi + - name: Build on wasm32-wasi + # TODO: also run `cargo test` + # TODO: ideally we would build `--workspace`, but not all crates compile for WASM + run: cargo build --target=wasm32-unknown-unkown --features wasm-bindgen + check-rustdoc-links: name: Check rustdoc intra-doc links runs-on: ubuntu-latest