Skip to content

Commit 3623737

Browse files
authored
Merge pull request #142 from kkarbowiak/ci-matrix
Change build matrix definition
2 parents 65a9eaa + 71d88fc commit 3623737

1 file changed

Lines changed: 16 additions & 28 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,28 @@ 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: ubuntu-24.04
23+
compiler: cl
24+
- os: windows-latest
25+
compiler: clang++
26+
- os: windows-latest
27+
compiler: g++
4028
steps:
4129
- uses: actions/checkout@v5
4230

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

4634
- name: CMake build
4735
if: runner.os == 'macOS'

0 commit comments

Comments
 (0)