Skip to content

Commit

Permalink
👷 Add test target wasm32-unknown-emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanTsune committed Nov 18, 2024
1 parent f2769c8 commit 6c6b555
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/webassembly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ jobs:
fail-fast: false
matrix:
include:
- target: wasm32-unknown-emscripten
container: emscripten/emsdk:latest
- target: wasm32-wasi
container: ghcr.io/portable-network-archive/wasi-sdk-gh-actions:wasi-sdk-24
- target: wasm32-wasi
Expand All @@ -85,7 +87,16 @@ jobs:
with:
target: ${{ matrix.target }}
toolchain: nightly
- uses: bytecodealliance/actions/wasmtime/setup@v1
- name: Setup wasmtime
if: ${{ startsWith(matrix.target, 'wasm32-wasi') }}
uses: bytecodealliance/actions/wasmtime/setup@v1
- name: Run on wasmtime
if: ${{ startsWith(matrix.target, 'wasm32-wasi') }}
run: |
cargo run -p portable-network-archive --target ${{ matrix.target }} --release -- --help
- name: Run on Node.js
if: ${{ startsWith(matrix.target, 'wasm32-unknown-emscripten') }}
run: |
cargo run -p portable-network-archive --target ${{ matrix.target }} --release -- --help
env:
RUSTFLAGS: "-C link-arg=-sINITIAL_MEMORY=512MB -C link-arg=-sTOTAL_STACK=16MB"

0 comments on commit 6c6b555

Please sign in to comment.