@@ -193,7 +193,7 @@ jobs:
193
193
matrix :
194
194
# Build each combination of OS and release/debug variants
195
195
os : [ windows-2019 ]
196
- msystem : [ ucrt64, mingw64 ]
196
+ msystem : [ ucrt64, mingw64, clang64 ]
197
197
build-type : [ Release, Debug ]
198
198
include :
199
199
- msystem : ucrt64
@@ -202,6 +202,9 @@ jobs:
202
202
- msystem : mingw64
203
203
package-prefix : x86_64
204
204
cmake-flags : LDFLAGS="-fuse-ld=lld -lstdc++ -lgcc_s"
205
+ - msystem : clang64
206
+ package-prefix : clang-x86_64
207
+ cmake-flags : LDFLAGS="-lc++"
205
208
# Don't abort runners if a single one fails
206
209
fail-fast : false
207
210
runs-on : ${{ matrix.os }}
@@ -220,7 +223,7 @@ jobs:
220
223
run : |
221
224
mkdir build
222
225
cd build
223
- ${{ matrix.cmake-flags }} cmake .. -DTESTS=ON -DCMAKE_C_COMPILER="clang" -DCMAKE_CXX_COMPILER="clang" -DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
226
+ ${{ matrix.cmake-flags }} cmake .. -DTESTS=ON -DCMAKE_C_COMPILER="$MINGW_PREFIX/bin/ clang" -DCMAKE_CXX_COMPILER="$MINGW_PREFIX/bin/ clang++ " -DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
224
227
- name : Build
225
228
working-directory : build
226
229
run : |
@@ -229,7 +232,14 @@ jobs:
229
232
working-directory : build
230
233
run : |
231
234
ctest -j 4 --output-on-failure -T test
232
-
235
+ - name : Install
236
+ working-directory : build
237
+ run : |
238
+ cmake --install . --prefix=../dist
239
+ - uses : actions/upload-artifact@v4
240
+ with :
241
+ name : ${{ matrix.msystem }}-${{ matrix.build-type }}
242
+ path : dist/
233
243
234
244
# Fake check that can be used as a branch-protection rule.
235
245
all-checks :
0 commit comments