Add wasm compiling
This commit is contained in:
parent
3f7f61970c
commit
9eae874c02
3 changed files with 53 additions and 18 deletions
11
.github/workflows/release-plugin.yml
vendored
11
.github/workflows/release-plugin.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue