-
Notifications
You must be signed in to change notification settings - Fork 21
53 lines (43 loc) · 1.42 KB
/
cmake-wasm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: CMake-Wasm
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Wasm_Release
runs-on: ubuntu-latest
timeout-minutes: 50
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/ccache-action@v1.2.9
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 -DJLE_BUILD_EDITOR=OFF -DJLE_BUILD_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@v4
with:
name: Wasm_Release
path: |
build/**/*.exe
build/**/*.html
build/**/*.js
build/**/*.wasm
build/**/*.data
build/**/EngineResources
build/**/EditorResources
build/**/GameResources
!build/**/CMakeFiles