Skip to content

Commit 8a321e5

Browse files
committed
[cicd_cmake_multi_platform.yml] fix: matrix
1 parent a259c18 commit 8a321e5

File tree

1 file changed

+29
-23
lines changed

1 file changed

+29
-23
lines changed

.github/workflows/cicd_cmake_multi_platform.yml

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -34,61 +34,66 @@ jobs:
3434
strategy:
3535
fail-fast: false
3636
matrix:
37-
gen: [Ninja] ## default generator
38-
# cc : [gcc, clang] ## compilers
39-
bt : [Release, Debug] ## build type
40-
# pl : [ubuntu-latest, macos-latest] ## platform
41-
# exclude:
42-
# - pl : windows-latest
43-
# cc : gcc
44-
# - pl : windows-latest
45-
# cc : clang
37+
bt : [Debug, Release] ## build type
38+
pl :
39+
- ubuntu-latest
40+
- ubuntu-latest
41+
- macos-latest
42+
- macos-latest
43+
- macos-latest
44+
- windows-latest
45+
- windows-latest
46+
- windows-2022
47+
## END pl - platform
4648
include:
4749
- name: "ubuntu gcc"
4850
pl : ubuntu-latest
4951
cc : gcc
5052
cxx: g++
5153
bp : "lnx_gcc"
52-
# bt : Debug
54+
gen: "Ninja"
5355
- name: "ubuntu clang"
5456
pl : ubuntu-latest
5557
cc : clang
5658
cxx: clang++
5759
bp : "lnx_clang"
58-
# bt : Debug
60+
gen: "Ninja"
5961
- name: "macOS gcc"
6062
pl : macos-latest
6163
cc : gcc
6264
cxx: g++
6365
bp : "mac_gcc"
64-
# bt : Debug
66+
gen: "Ninja"
6567
- name: "macOS clang"
6668
pl : macos-latest
6769
cc : clang
6870
cxx: clang++
6971
bp : "mac_clang"
70-
# bt : Debug
72+
gen: "Ninja"
7173
- name: "macOS Xcode"
7274
pl : macos-latest
7375
cc : cc
7476
cxx: c++
7577
bp : "mac_Xcode"
7678
gen: "Xcode"
77-
# bt : Debug
78-
- name: "win10 MSVC"
79-
pl : windows-2022 # drmemory currently not works on windows-2025 - Dr. Memory internal crash at PC.
79+
- name: "win11 clang"
80+
pl : windows-latest
81+
cc : clang
82+
cxx: clang++
83+
bp : "win11_clang"
84+
gen: "Ninja"
85+
- name: "win11 MSVC"
86+
pl : windows-latest
8087
cc : cl
8188
cxx: cl
82-
bp : "win10_cl"
89+
bp : "win11_cl"
8390
gen: "Visual Studio 17 2022"
84-
# bt : Debug
85-
- name: "win11 MSVC"
86-
pl : windows-2025 # drmemory currently not works on windows-2025 - Dr. Memory internal crash at PC.
91+
- name: "win10 MSVC"
92+
pl : windows-2022
8793
cc : cl
8894
cxx: cl
89-
bp : "win11_cl"
95+
bp : "win10_cl"
9096
gen: "Visual Studio 17 2022"
91-
# bt : Debug
9297
## END include
9398
## END matrix
9499
## END strategy
@@ -263,8 +268,9 @@ jobs:
263268
working-directory: ${{ steps.str2.outputs.dir_path_build }}
264269
run: ctest --build-config ${{ matrix.bt }} --output-on-failure
265270

271+
## drmemory currently not works on windows-latest/windows-2025 => Dr. Memory internal crash at PC 0x*.
266272
- name: Memcheck
267-
if : ${{ matrix.bt == 'Debug' }}
273+
if : ${{ matrix.bt == 'Debug' && matrix.pl != 'windows-latest' }}
268274
working-directory: ${{ steps.str2.outputs.dir_path_build }}
269275
run : cmake --build . --config ${{ matrix.bt }} --target memcheck
270276

0 commit comments

Comments
 (0)