Skip to content

Commit feea2b6

Browse files
committed
Add debug and release to build matrix
1 parent 2cff6b7 commit feea2b6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/cmake.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: CI
33
on: [push, pull_request]
44

55
env:
6-
BUILD_TYPE: Release
76
EM_VERSION: 2.0.16
87
EM_CACHE_FOLDER: 'emsdk-cache'
98

@@ -19,8 +18,11 @@ jobs:
1918
- { name: Windows 64, os: windows-latest, compiler: vs2019, arch: "64", cmakepp: "", flags: "-A x64"}
2019
- { name: MacOS, os: macos-latest, compiler: clang++, arch: "64", cmakepp: "", flags: ""}
2120
- { name: WebAssembly, os: ubuntu-latest, compiler: em++, arch: "32", cmakepp: "emcmake", flags: "-DCMAKE_CXX_FLAGS=\"-s DISABLE_EXCEPTION_CATCHING=0\" -DCMAKE_CROSSCOMPILING_EMULATOR=node"}
21+
build-type:
22+
- Release
23+
- Debug
2224

23-
name: ${{matrix.platform.name}}
25+
name: ${{matrix.platform.name}} ${{matrix.build-type}}
2426
runs-on: ${{matrix.platform.os}}
2527

2628
steps:
@@ -54,12 +56,12 @@ jobs:
5456
- name: Configure CMake
5557
shell: bash
5658
working-directory: ${{github.workspace}}/build
57-
run: ${{matrix.platform.cmakepp}} cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ${{matrix.platform.flags}} -DOUP_DO_TEST=1
59+
run: ${{matrix.platform.cmakepp}} cmake .. -DCMAKE_BUILD_TYPE=${{matrix.build-type}} ${{matrix.platform.flags}} -DOUP_DO_TEST=1
5860

5961
- name: Build
6062
shell: bash
6163
working-directory: ${{github.workspace}}/build
62-
run: cmake --build . --config ${BUILD_TYPE} --parallel 2
64+
run: cmake --build . --config ${{matrix.build-type}} --parallel 2
6365

6466
- name: Test
6567
shell: bash

0 commit comments

Comments
 (0)