Add wasm compiling

This commit is contained in:
Andras Schmelczer 2024-12-18 22:49:47 +00:00
parent 3f7f61970c
commit 9eae874c02
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
3 changed files with 53 additions and 18 deletions

View file

@ -5,6 +5,9 @@ on:
tags:
- "*"
env:
CARGO_TERM_COLOR: always
jobs:
build-plugin:
runs-on: ubuntu-latest
@ -17,9 +20,15 @@ jobs:
with:
node-version: "18.x"
- name: Build wasm
run: |
cd backend
cargo install wasm-pack
wasm-pack build sync_lib --features wee_alloc
- name: Build plugin
run: |
cd plugin
cd ../plugin
npm install
npm run build