Skip to content

Commit d7f4aa6

Browse files
committed
add test presets
1 parent 508b9a2 commit d7f4aa6

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ jobs:
7272
else
7373
cmake --build --preset=${{ matrix.compiler }}-${{ matrix.build_type }}
7474
fi
75+
- name: Test
76+
if: ${{ matrix.build_type == 'Debug' }}
77+
shell: bash
78+
run: |
79+
if [ "${{ runner.os }}" == "Windows" ]; then
80+
ctest --preset=test-Windows-${{ matrix.compiler }}-${{ matrix.build_type }}
81+
else
82+
ctest --preset=test-${{ matrix.compiler }}-${{ matrix.build_type }}
83+
fi
7584
7685
format:
7786
name: Formatting

CMakePresets.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,16 +234,26 @@
234234
{
235235
"name": "test-Windows-msvc-Debug",
236236
"displayName": "test-win-msvc-debug",
237-
"description": "Enable output and stop on failure",
238237
"inherits": "test-common",
239238
"configurePreset": "Windows-msvc-Debug"
240239
},
241240
{
242241
"name": "test-Windows-llvm-Debug",
243242
"displayName": "test-win-llvm-debug",
244-
"description": "Enable output and stop on failure",
245243
"inherits": "test-common",
246244
"configurePreset": "Windows-llvm-Debug"
245+
},
246+
{
247+
"name": "test-llvm-Debug",
248+
"displayName": "test-llvm-debug",
249+
"inherits": "test-common",
250+
"configurePreset": "llvm-Debug"
251+
},
252+
{
253+
"name": "test-gcc-Debug",
254+
"displayName": "test-gcc-debug",
255+
"inherits": "test-common",
256+
"configurePreset": "gcc-Debug"
247257
}
248258
],
249259
"packagePresets": [

0 commit comments

Comments
 (0)