name: WASM
on:
push:
branches:
pull_request:
types:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
env:
RUSTFLAGS: -Ctarget-feature=+simd128 --cfg getrandom_backend="wasm_js"
steps:
- uses: actions/checkout@v4
- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Run Chrome tests
run: wasm-pack test --headless --chrome