45
45
environment : msys2
46
46
msystem : MINGW64
47
47
architecture : x86_64
48
+ use-clang : false
48
49
shell : ' msys2 {0}'
49
50
fatal_warnings : true
50
51
54
55
environment : msys2
55
56
msystem : UCRT64
56
57
architecture : ucrt-x86_64
58
+ use-clang : false
57
59
shell : ' msys2 {0}'
58
60
fatal_warnings : true
59
61
63
65
environment : msys2
64
66
msystem : CLANG64
65
67
architecture : clang-x86_64
68
+ use-clang : true
66
69
shell : ' msys2 {0}'
67
70
fatal_warnings : true
68
71
72
75
environment : msys2
73
76
msystem : CLANGARM64
74
77
architecture : clang-x86_64
78
+ use-clang : true
75
79
shell : ' msys2 {0}'
76
80
fatal_warnings : true
77
81
@@ -161,7 +165,7 @@ jobs:
161
165
git
162
166
163
167
- name : Setup GCC (MSYS2)
164
- if : matrix.config.os == 'windows' && matrix.config.environment == 'msys2'
168
+ if : matrix.config.os == 'windows' && matrix.config.environment == 'msys2' && matrix.config.use-clang == false
165
169
uses : Totto16/msys2-install-packages-pinned@v1
166
170
with :
167
171
msystem : ${{matrix.config.msystem}}
@@ -170,7 +174,16 @@ jobs:
170
174
install : |
171
175
gcc=15 gcc-libs=!
172
176
173
- - name : Setup Clang (Linux) (libc++)
177
+ - name : Setup Clang (MSYS2, libc++)
178
+ if : matrix.config.os == 'windows' && matrix.config.environment == 'msys2' && matrix.config.use-clang == true
179
+ uses : Totto16/msys2-install-packages-pinned@v1
180
+ with :
181
+ msystem : ${{matrix.config.msystem}}
182
+ install : |
183
+ clang=20
184
+ libc++=20
185
+
186
+ - name : Setup Clang (Linux, libc++)
174
187
if : matrix.config.os == 'ubuntu' && matrix.config.use-clang == true && matrix.config.use-clang_stdlib
175
188
run : |
176
189
wget https://apt.llvm.org/llvm.sh
@@ -181,7 +194,7 @@ jobs:
181
194
echo "CXX=clang++-20" >> "$GITHUB_ENV"
182
195
echo "OBJC=clang-20" >> "$GITHUB_ENV"
183
196
184
- - name : Setup Clang (Linux) ( libstdc++)
197
+ - name : Setup Clang (Linux, libstdc++)
185
198
if : matrix.config.os == 'ubuntu' && matrix.config.use-clang == true && (! matrix.config.use-clang_stdlib)
186
199
run : |
187
200
wget https://apt.llvm.org/llvm.sh
@@ -248,7 +261,7 @@ jobs:
248
261
brew install sdl2 sdl2_ttf sdl2_mixer sdl2_image
249
262
250
263
- name : Configure
251
- run : meson setup build -Dbuildtype=release -Ddefault_library=${{( matrix.config.os == 'windows' && matrix.config.environment == 'msvc' && matrix.config.static ) && 'static' ||'shared' }} -Dclang_libcpp=${{ ( ( matrix.config.os == 'ubuntu' && matrix.config.use-clang == true && matrix.config.use-clang_stdlib ) || matrix.config.os == 'macos' ) && 'enabled' || 'disabled' }} -Drun_in_ci=true ${{( matrix.config.fatal_warnings ) && '--fatal-meson-warnings' || '' }}
264
+ run : meson setup build -Dbuildtype=release -Ddefault_library=${{( matrix.config.os == 'windows' && matrix.config.environment == 'msvc' && matrix.config.static ) && 'static' ||'shared' }} -Dclang_libcpp=${{ ( ( matrix.config.os == 'ubuntu' && matrix.config.use-clang == true && matrix.config.use-clang_stdlib ) || matrix.config.os == 'macos' || ( matrix.config.os == 'windows' && matrix.config.environment == 'msys2' && matrix.config.use-clang == true ) ) && 'enabled' || 'disabled' }} -Drun_in_ci=true ${{( matrix.config.fatal_warnings ) && '--fatal-meson-warnings' || '' }}
252
265
253
266
- name : Build
254
267
run : meson compile -C build
0 commit comments