Skip to content

Commit ea6b3fe

Browse files
committed
Change build matrix definition
1 parent 65a9eaa commit ea6b3fe

1 file changed

Lines changed: 14 additions & 28 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,26 @@ on:
88

99
jobs:
1010
build:
11-
name: ${{ matrix.config.name }}
12-
runs-on: ${{ matrix.config.os }}
11+
runs-on: ${{ matrix.os }}
1312
strategy:
1413
matrix:
15-
config:
16-
- {
17-
name: "Windows latest - MSVC",
18-
os: windows-latest,
19-
cc: "cl",
20-
cxx: "cl",
21-
}
22-
- {
23-
name: "Ubuntu 24.04 - GCC",
24-
os: ubuntu-24.04,
25-
cc: "gcc",
26-
cxx: "g++",
27-
}
28-
- {
29-
name: "Ubuntu 24.04 - Clang",
30-
os: ubuntu-24.04,
31-
cc: "clang",
32-
cxx: "clang++",
33-
}
34-
- {
35-
name: "macOS 15",
36-
os: macos-15,
37-
cc: "clang",
38-
cxx: "clang++",
39-
}
14+
os: [macos-15, ubuntu-24.04, windows-latest]
15+
type: [Debug, Release]
16+
compiler: [clang++, g++, cl]
17+
exclude:
18+
- os: macos-15
19+
compiler: g++
20+
- os: macos-15
21+
compiler: cl
22+
- os: windows-latest
23+
compiler: clang++
24+
- os: windows-latest
25+
compiler: g++
4026
steps:
4127
- uses: actions/checkout@v5
4228

4329
- name: CMake configure
44-
run: cmake -Bbuild -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=${{ matrix.config.cc }} -DCMAKE_CXX_COMPILER=${{ matrix.config.cxx }}
30+
run: cmake -Bbuild -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DCMAKE_C_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_COMPILER=${{ matrix.compiler }}
4531

4632
- name: CMake build
4733
if: runner.os == 'macOS'

0 commit comments

Comments
 (0)