Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Wasm

on:
push:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Prepare cargo tests
run: |
rustup target add wasm32-unknown-emscripten --toolchain=nightly
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu

- name: Build for wasm
run: cargo +nightly build --target=wasm32-unknown-emscripten -Zbuild-std=panic_abort,std