Skip to content

Commit 4ec37c3

Browse files
committed
Test cmake presets on Linux CI too
with clang-19 and gcc-14 on ubuntu-24.04
1 parent 9b16321 commit 4ec37c3

File tree

1 file changed

+30
-15
lines changed

1 file changed

+30
-15
lines changed

.github/workflows/ci_tests.yml

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,36 @@ on:
1111
- cron: '30 15 * * *'
1212

1313
jobs:
14-
# preset-test:
15-
# runs-on: ubuntu-latest
16-
# strategy:
17-
# matrix:
18-
# preset: []
19-
# name: "Preset Test: ${{ matrix.preset }}"
20-
# steps:
21-
# - uses: actions/checkout@v4
22-
# - name: Setup build environment
23-
# uses: lukka/get-cmake@latest
24-
# with:
25-
# cmakeVersion: "~3.25.0"
26-
# ninjaVersion: "^1.11.1"
27-
# - name: Run preset
28-
# run: cmake --workflow --preset ${{ matrix.preset }}
14+
preset-test:
15+
runs-on: ubuntu-24.04
16+
strategy:
17+
matrix:
18+
preset: [debug, release, gcov, asan, lsan, usan]
19+
compiler:
20+
- cpp: g++-14
21+
c: gcc-14
22+
gcov: ""
23+
- cpp: clang++-18
24+
c: clang-18
25+
gcov: llvm-cov
26+
name: "Preset Test: ${{ matrix.preset }}"
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- name: Setup build environment
31+
uses: aminya/setup-cpp@v1
32+
with:
33+
# cmake: true
34+
ninja: true
35+
gcovr: true
36+
37+
- name: Run preset ${{ matrix.preset }} ${{ matrix.compiler.cpp }}
38+
run: |
39+
cmake --workflow --preset ${{ matrix.preset }}
40+
env:
41+
CC: ${{ matrix.compiler.c }}
42+
CXX: ${{ matrix.compiler.cpp }}
43+
GCOV: ${{ matrix.compiler.gcov }}
2944

3045
test:
3146
strategy:

0 commit comments

Comments
 (0)