diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1f1e5d8156..286dd34b04 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -117,6 +117,34 @@ jobs: RUST_VERSION: stable WASM: wasm_simple + wasm_emscripten: + strategy: + matrix: + os: [macos-latest] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + + - name: Install rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: wasm32-unknown-emscripten + override: true + + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: '12' + + - name: Build and Test + run: bash ci/github.sh + env: + RUST_VERSION: stable + WASM: wasm_emscripten + cross-targets: strategy: matrix: diff --git a/ci/github.sh b/ci/github.sh index ee62d46fb1..28ee6cb7bf 100755 --- a/ci/github.sh +++ b/ci/github.sh @@ -34,6 +34,8 @@ meaningful in the github actions feature matrix UI. test_wasm elif [[ ${WASM:-} == wasm_simple ]]; then test_wasm_simple + elif [[ ${WASM:-} == wasm_emscripten ]]; then + test_wasm_emscripten elif [[ ${CORE:-} == no_std ]]; then test_core elif [[ ${EXHAUSTIVE_TZ:-} == all_tzs ]]; then @@ -112,4 +114,8 @@ test_wasm_simple() { fi } +test_wasm_emscripten() { + runt cargo build --target wasm32-unknown-emscripten +} + main "$@"