add wasm32-unknown-emscripten test

This commit is contained in:
Yureka 2021-09-17 18:10:29 +02:00 committed by Dirkjan Ochtman
parent a12cf7b724
commit a9ec3c9ca3
2 changed files with 34 additions and 0 deletions

View File

@ -121,6 +121,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:

View File

@ -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 "$@"