Skip to content

Commit

Permalink
Updated emulator-wasm workflow action
Browse files Browse the repository at this point in the history
  • Loading branch information
visrealm committed Sep 5, 2023
1 parent 1bffca2 commit dc90d60
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/emulator-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
branches: [ "main" ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
OUTPUT_DIR: build_wasm

permissions:
contents: read
Expand All @@ -22,6 +22,15 @@ jobs:
with:
submodules: recursive

- name: Build emscripten
- name: Setup emscripten
working-directory: ${{env.GITHUB_WORKSPACE}}
run: emulator/wasm/build_wasm.bat
run: emconfig.bat

- name: Configure CMake
working-directory: ${{env.GITHUB_WORKSPACE}}
run: >
emcmake cmake -B ${{ env.OUTPUT_DIR }} -S ${{env.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 }}

0 comments on commit dc90d60

Please sign in to comment.