Skip to content

Update emulator-wasm.yml #36

Update emulator-wasm.yml

Update emulator-wasm.yml #36

Workflow file for this run

name: emulator-wasm
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Release
OUTPUT_DIR: build_wasm
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup emscripten
working-directory: ${{ github.workspace }}
run: emconfig.bat
- name: Configure CMake
working-directory: ${{ github.workspace }}
run: >
emcmake cmake -B ${{ env.OUTPUT_DIR }} -S ${{ github.workspace }}
- name: Build
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
run: cmake --build ${{ env.OUTPUT_DIR }} --config ${{ env.BUILD_TYPE }}