@@ -19,11 +19,12 @@ jobs:
19
19
matrix :
20
20
os : [macos-15, ubuntu-24.04, windows-2022]
21
21
22
- # type: [shared, static ]
22
+ type : [Debug, Release ]
23
23
24
+ # link: [shared, static]
24
25
# include:
25
- # - {type : shared, shared: YES}
26
- # - {type : static, shared: NO}
26
+ # - {link : shared, shared: YES}
27
+ # - {link : static, shared: NO}
27
28
28
29
runs-on : ${{ matrix.os }}
29
30
34
35
if : startsWith(matrix.os, 'macos')
35
36
uses : aminya/setup-cpp@v1
36
37
with :
37
- compiler : llvm-18
38
+ # compiler: llvm-18
38
39
clangtidy : true
39
40
cmake : true
40
41
ninja : true
@@ -56,18 +57,18 @@ jobs:
56
57
57
58
- name : Configure
58
59
shell : pwsh
59
- run : cmake --preset=Debug # -D BUILD_SHARED_LIBS= ${{ matrix.shared }}
60
+ run : cmake --preset=${{ matrix.type }}
60
61
61
62
- name : Setup PATH
62
63
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 }} "
64
65
65
66
- name : Build
66
- run : cmake --build build --config Debug -j 2
67
+ run : cmake --build build --config ${{ matrix.type }} -j 2
67
68
68
69
- name : Test
69
70
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 }}
71
72
72
73
- name : Install
73
- run : cmake --install build --config Debug --prefix prefix
74
+ run : cmake --install build --prefix prefix --config ${{ matrix.type }}
0 commit comments