Skip to content

feat(wasm): add JavaScript/WASM bindings and npm publish pipeline #37

feat(wasm): add JavaScript/WASM bindings and npm publish pipeline

feat(wasm): add JavaScript/WASM bindings and npm publish pipeline #37

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup component add rustfmt
- run: cargo fmt --check
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo test
- run: cargo test --features ffi
wasm:
name: WASM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: jetli/wasm-pack-action@v0.4.0
- run: rustup target add wasm32-unknown-unknown
- run: npm run wasm:ci