Skip to content

Implement WASM compatibility for the areas of the library where we ca… #9

Implement WASM compatibility for the areas of the library where we ca…

Implement WASM compatibility for the areas of the library where we ca… #9

Workflow file for this run

name: wasm
on:
push:
pull_request:
jobs:
build:
name: Build and Test on WebAssembly
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install Swift
uses: swift-actions/setup-swift@v2
with:
swift-version: "6.0.3"
# Wasmtime is required because `swift test` doesn't work for WebAssembly targets.
# For WASM, we must build tests separately and run them with a WASM runtime.
# See: https://book.swiftwasm.org/getting-started/testing.html
- name: Install Wasmtime
run: |
curl https://wasmtime.dev/install.sh -sSf | bash
echo "$HOME/.wasmtime/bin" >> $GITHUB_PATH
- name: Build and Test
run: ./scripts/build-and-test-wasm.sh