Add emscripten build to CI

Adds a build-only (no test) job for testing the emscripten (web) build
on github actions.
This commit is contained in:
Nathaniel Cesario
2023-08-01 17:53:23 -06:00
committed by arcady-lunarg
parent 396596ca4a
commit bfd96d3044
2 changed files with 26 additions and 2 deletions

View File

@@ -227,3 +227,27 @@ jobs:
CMAKE_CXX_COMPILER_LAUNCHER: ccache
- name: Build
run: cmake --build build/
emscripten:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.7'
- uses: lukka/get-cmake@latest
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ubuntu-emscripten
- uses: mymindstorm/setup-emsdk@v11
- name: Update Glslang Sources
run: ./update_glslang_sources.py
- name: Configure
run: emcmake cmake -GNinja -Bbuild/web -DCMAKE_BUILD_TYPE=Release -DENABLE_GLSLANG_JS=ON -DBUILD_TESTING=OFF -DENABLE_OPT=OFF
env:
CMAKE_GENERATOR: Ninja
CMAKE_C_COMPILER_LAUNCHER: ccache
CMAKE_CXX_COMPILER_LAUNCHER: ccache
- name: Build
run: cmake --build build/web