Skip to content

Commit e5a604b

Browse files
committed
CI: test both gcc/clang and prevent double-runs
1 parent 14f15ea commit e5a604b

2 files changed

Lines changed: 6 additions & 13 deletions

File tree

.github/workflows/ubuntu.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Ubuntu 24.04 Sanitized CI (GCC 14)
1+
name: Ubuntu 24.04 CI (GCC 14 & Clang 18)
22

33
on: [push, pull_request]
44

@@ -8,12 +8,11 @@ jobs:
88
strategy:
99
matrix:
1010
include:
11-
- {shared: ON}
12-
- {shared: OFF}
11+
- {cc: gcc-14, cxx: g++-14}
12+
- {cc: clang-18, cxx: clang++-18}
1313
steps:
1414
- uses: actions/checkout@v3
15-
- name: Use cmake
15+
- name: Build with ${{matrix.cxx}}
1616
run: |
17-
mkdir build &&
18-
cmake -B build -DCMAKE_C_COMPILER=gcc-14 -DCMAKE_CXX_COMPILER=g++-14 &&
17+
cmake -B build -DCMAKE_C_COMPILER=${{matrix.cc}} -DCMAKE_CXX_COMPILER=${{matrix.cxx}}
1918
cmake --build build

.github/workflows/vs.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,12 @@ jobs:
66
ci:
77
name: windows
88
runs-on: windows-latest
9-
strategy:
10-
fail-fast: false
11-
matrix:
12-
include:
13-
- {gen: Visual Studio 17 2025, arch: x64, shared: ON}
14-
- {gen: Visual Studio 17 2025, arch: x64, shared: OFF}
159
steps:
1610
- name: checkout
1711
uses: actions/checkout@v3
1812
- name: Configure
1913
run: |
20-
cmake -G "${{matrix.gen}}" -A ${{matrix.arch}} -B build
14+
cmake -G "Visual Studio 17 2025" -A x64 -B build
2115
- name: Build Debug
2216
run: cmake --build build --config Debug --verbose
2317
- name: Build Release

0 commit comments

Comments
 (0)