copyright notice update #336
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: CMake-Wasm | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Wasm_Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Update Git Submodules | |
run: git submodule update --init --recursive | |
- name: Ccache Setup # ccache/sccache have been noted to not work fully for jle Wasm builds. (many cache misses, etc) | |
uses: hendrikmuhs/[email protected] | |
with: | |
key: wasm-Release | |
variant: sccache | |
- name: Setup Emscripten SDK | |
uses: mymindstorm/setup-emsdk@v11 | |
with: | |
version: 3.1.43 | |
- name: Configure CMake with Emscripten SDK | |
run: emcmake cmake gametemplate -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DBUILD_EDITOR=OFF -DBUILD_EMSCRIPTEN=ON -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache | |
- name: Build | |
run: | |
emmake make -C ${{github.workspace}}/build -j 4 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Wasm_Release | |
path: | | |
build/**/*.exe | |
build/**/*.html | |
build/**/*.js | |
build/**/*.wasm | |
build/**/*.data | |
build/**/EngineResources | |
build/**/EditorResources | |
build/**/GameResources | |
!build/**/CMakeFiles |