Fix buggy wasm-pack
@@ -101,8 +101,16 @@ jobs:
node-version: ${{env.CI_NODE_MIN_VER}}
- name: Install wasm-pack
+ if: ${{ !startsWith(matrix.os, 'windows-') }}
shell: bash
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
+ # https://github.com/rustwasm/wasm-pack/issues/1097
+ - name: Install wasm-pack
+ if: startsWith(matrix.os, 'windows-')
+ shell: bash
+ run: |
+ curl -L https://github.com/rustwasm/wasm-pack/releases/download/v0.10.2/wasm-pack-init.exe -o wasm-pack-init.exe
+ ./wasm-pack-init.exe
- name: Build and test
shell: bash
