Skip to content

Commit 16cf2dd

Browse files
committed
Build Debug and Release on CI
1 parent afda4ed commit 16cf2dd

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

Diff for: .github/workflows/ci.yml

+10-9
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ jobs:
1919
matrix:
2020
os: [macos-15, ubuntu-24.04, windows-2022]
2121

22-
# type: [shared, static]
22+
type: [Debug, Release]
2323

24+
# link: [shared, static]
2425
# include:
25-
# - {type: shared, shared: YES}
26-
# - {type: static, shared: NO}
26+
# - {link: shared, shared: YES}
27+
# - {link: static, shared: NO}
2728

2829
runs-on: ${{ matrix.os }}
2930

@@ -34,7 +35,7 @@ jobs:
3435
if: startsWith(matrix.os, 'macos')
3536
uses: aminya/setup-cpp@v1
3637
with:
37-
compiler: llvm-18
38+
# compiler: llvm-18
3839
clangtidy: true
3940
cmake: true
4041
ninja: true
@@ -56,18 +57,18 @@ jobs:
5657
5758
- name: Configure
5859
shell: pwsh
59-
run: cmake --preset=Debug # -D BUILD_SHARED_LIBS=${{ matrix.shared }}
60+
run: cmake --preset=${{ matrix.type }}
6061

6162
- name: Setup PATH
6263
if: matrix.os == 'windows-2022' && matrix.type == 'shared'
63-
run: Add-Content "$env:GITHUB_PATH" "$(Get-Location)\build\Debug"
64+
run: Add-Content "$env:GITHUB_PATH" "$(Get-Location)\build\${{ matrix.type }}"
6465

6566
- name: Build
66-
run: cmake --build build --config Debug -j 2
67+
run: cmake --build build --config ${{ matrix.type }} -j 2
6768

6869
- name: Test
6970
working-directory: build
70-
run: ctest --output-on-failure --no-tests=error -C Debug -j 2
71+
run: ctest --output-on-failure --no-tests=error -C ${{ matrix.type }}
7172

7273
- name: Install
73-
run: cmake --install build --config Debug --prefix prefix
74+
run: cmake --install build --prefix prefix --config ${{ matrix.type }}

0 commit comments

Comments
 (0)