Skip to content

Commit 2823194

Browse files
authored
Added Emscripten workflow
1 parent faeef64 commit 2823194

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Emscripten
2+
3+
on: [push]
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
type: [Debug, Release]
16+
17+
env:
18+
BUILD_TYPE: ${{ matrix.type }}
19+
BUILD_PATH: ${{ github.workspace }}/build/web/${{ matrix.type }}
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: mymindstorm/setup-emsdk@v10
24+
25+
- name: Test Emscripten
26+
run: emcc -v
27+
28+
- name: Configure CMake
29+
run: emcmake cmake -B ${{ env.BUILD_PATH }} -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
30+
31+
- name: Build
32+
run: cmake --build ${{ env.BUILD_PATH }} --config ${{ env.BUILD_TYPE }}

0 commit comments

Comments
 (0)