Compare commits

...

1 Commits

Author SHA1 Message Date
e2e22a7ad8 Make a separate WASM prep step for windows 2023-10-16 18:45:25 -04:00

View File

@ -69,7 +69,7 @@ jobs:
- run: yarn test:cov
prepare-json-files:
runs-on: ubuntu-20.04 # seperate job on Ubuntu for easy string manipulations (compared to Windows)
runs-on: ubuntu-20.04 # seperate job on Ubuntu for easy string manipulations (compared to Windows)
outputs:
version: ${{ steps.export_version.outputs.version }}
steps:
@ -141,7 +141,8 @@ jobs:
with:
workspaces: './src/wasm-lib'
- name: wasm prep
- name: wasm prep - linux/mac
if: matrix.os != 'windows-latest'
shell: bash
run: |
mkdir src/wasm-lib/pkg; cd src/wasm-lib
@ -149,6 +150,15 @@ jobs:
cd ../../
cp src/wasm-lib/pkg/wasm_lib_bg.wasm public
- name: wasm prep - windows
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
mkdir src\wasm-lib\pkg; cd src\wasm-lib
npx wasm-pack build --target web --out-dir pkg
cd ..\..\
cp src\wasm-lib\pkg\wasm_lib_bg.wasm public
- name: Fix format
run: yarn fmt