Improve JavaScript/Wasm packaging

This commit is contained in:
Pekka Enberg
2024-03-03 14:10:36 +02:00
parent 227afd6c6f
commit 5eb9ec0d03
4 changed files with 20 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ env:
CARGO_TERM_COLOR: always
jobs:
build:
build-native:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
@@ -23,3 +23,11 @@ jobs:
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
build-wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: wasm-pack build --target nodejs bindings/wasm