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 - run: yarn test:cov
prepare-json-files: 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: outputs:
version: ${{ steps.export_version.outputs.version }} version: ${{ steps.export_version.outputs.version }}
steps: steps:
@ -79,7 +79,7 @@ jobs:
with: with:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
cache: 'yarn' cache: 'yarn'
- name: Set nightly version - name: Set nightly version
if: github.event_name == 'schedule' if: github.event_name == 'schedule'
run: | run: |
@ -141,7 +141,8 @@ jobs:
with: with:
workspaces: './src/wasm-lib' workspaces: './src/wasm-lib'
- name: wasm prep - name: wasm prep - linux/mac
if: matrix.os != 'windows-latest'
shell: bash shell: bash
run: | run: |
mkdir src/wasm-lib/pkg; cd src/wasm-lib mkdir src/wasm-lib/pkg; cd src/wasm-lib
@ -149,6 +150,15 @@ jobs:
cd ../../ cd ../../
cp src/wasm-lib/pkg/wasm_lib_bg.wasm public 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 - name: Fix format
run: yarn fmt run: yarn fmt