Skip to content

Commit

Permalink
add wasm32-unknown-emscripten test
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-re-ka committed Sep 17, 2021
1 parent 406d60b commit 91d1eba
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -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:
Expand Down
6 changes: 6 additions & 0 deletions ci/github.sh
Expand Up @@ -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
Expand Down Expand Up @@ -112,4 +114,8 @@ test_wasm_simple() {
fi
}

test_wasm_emscripten() {
runt cargo build --target wasm32-unknown-emscripten
}

main "$@"

0 comments on commit 91d1eba

Please sign in to comment.