Skip to content

Commit

Permalink
Add Emscripten testing to CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Oct 30, 2023
1 parent 49538e3 commit 5704893
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,19 @@ jobs:
PLATFORM: ${{ matrix.config.platform }}
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
EMSCRIPTEN_VERSION: 1.38.45

steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'

- name: Setup emsdk
uses: mymindstorm/setup-emsdk@v11
with:
version: ${{ env.EMSCRIPTEN_VERSION }}
actions-cache-folder: emsdk-cache-${{ runner.os }}

- name: Install nbgv
if: startsWith(matrix.config.os, 'macos')
run: |
Expand Down Expand Up @@ -55,10 +62,14 @@ jobs:
shell: bash
run: build/build.sh -platform $PLATFORM -build_only

- name: Test
- name: Test (.NET)
shell: bash
run: build/test.sh -platform $PLATFORM

- name: Test (Emscripten)
shell: bash
run: tests/emscripten/test.sh

- name: Pack
shell: bash
run: build/build.sh prepack -platform $PLATFORM
Expand Down

0 comments on commit 5704893

Please sign in to comment.