Skip to content

Commit 9ab1795

Browse files
committed
change up workflows
1 parent 0ceaade commit 9ab1795

File tree

2 files changed

+36
-7
lines changed

2 files changed

+36
-7
lines changed

.github/workflows/emscripten-build.yml .github/workflows/build.yml

+34-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
name: Emscripten Build
1+
name: Build
22

33
on:
4-
push:
5-
branches:
6-
- develop
74
pull_request:
85
branches:
96
- develop
107
- main
118

129
jobs:
13-
build:
10+
emscripten:
11+
name: Emscripten
1412
runs-on: ubuntu-latest
1513

1614
steps:
@@ -39,3 +37,34 @@ jobs:
3937
emcmake cmake . -B emscripten-build
4038
cmake --build emscripten-build --config=Release
4139
shell: bash
40+
41+
ubuntu:
42+
name: Ubuntu
43+
runs-on: ubuntu-latest
44+
45+
steps:
46+
- name: Checkout source code
47+
uses: actions/checkout@v4
48+
with:
49+
submodules: 'recursive'
50+
51+
- name: Build
52+
run: |
53+
cmake . -B build -DCMAKE_BUILD_TYPE:String=Release
54+
cmake --build build --config Release
55+
shell: bash
56+
57+
windows:
58+
name: Windows
59+
runs-on: windows-latest
60+
steps:
61+
- name: Checkout source code
62+
uses: actions/checkout@v4
63+
with:
64+
submodules: 'recursive'
65+
- name: Build with Emscripten
66+
run: |
67+
cmake . -B build -DCMAKE_BUILD_TYPE:String=Release
68+
cmake --build build --config Release
69+
70+

.github/workflows/emscripten-deploy.yml .github/workflows/deploy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232
- name: Build with Emscripten
3333
run: |
3434
source emsdk/emsdk_env.sh
35-
emcmake cmake . -B emscripten-build
36-
cmake --build emscripten-build --config=Release
35+
emcmake cmake . -B emscripten-build -DCMAKE_BUILD_TYPE:String=Debug
36+
cmake --build emscripten-build --config Debug
3737
shell: bash
3838

3939
- name: Deploy Main Demo

0 commit comments

Comments
 (0)