Use debug builds for wasm-pack on PRs (#986)

This commit is contained in:
Adam Chalmers
2023-11-02 09:55:58 -05:00
committed by GitHub
parent ca5bc880dc
commit 1189f272ba

View File

@ -153,9 +153,11 @@ jobs:
- name: wasm prep
shell: bash
env:
MODE: ${{ (github.event_name == 'release' || github.event_name == 'schedule') && '--release' || '--debug' }}
run: |
mkdir src/wasm-lib/pkg; cd src/wasm-lib
npx wasm-pack build --target web --out-dir pkg
npx wasm-pack build --target web --out-dir pkg $DEBUG_OR_RELEASE ${{ env.MODE }}
cd ../../
cp src/wasm-lib/pkg/wasm_lib_bg.wasm public