-
Notifications
You must be signed in to change notification settings - Fork 20
47 lines (37 loc) · 1.07 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
name: CMake-Wasm
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Wasm_Release
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Update Git Submodules
run: git submodule update --init --recursive
- name: Setup Emscripten SDK
uses: mymindstorm/setup-emsdk@v11
with:
version: 3.1.9
- name: Configure CMake with Emscripten SDK
run: emcmake cmake gametemplate -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DBUILD_EMSCRIPTEN=ON
- name: Build
run:
emmake make -C ${{github.workspace}}/build -j2
- 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