Buildsystem update #79
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: WASM Build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ${{matrix.os-type}} | |
strategy: | |
matrix: | |
os-type: [windows-latest] | |
configuration: [Debug, Release] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Setup node.js 16.x | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16.x | |
- name: Get Emscripten | |
run: ./tools/setup_emscripten_win.bat | |
- name: Build WASM | |
run: ./tools/build_wasm_win.bat ${{matrix.configuration}} | |
- name: Update Package | |
if: ${{ matrix.configuration == 'Release' }} | |
run: | | |
npm install | |
- name: Run Test | |
if: ${{ matrix.configuration == 'Release' }} | |
run: | | |
$env:TEST_CONFIG="${{matrix.configuration}}" | |
npm run test |