@@ -181,15 +181,15 @@ jobs:
181
181
- name : Build CMake MSVC
182
182
working-directory : build/msvc
183
183
run : cmake --build . --config RelWithDebInfo --target install
184
- - name : Check artifacts MSVC
184
+ - name : Check artifacts CMake MSVC
185
185
uses : andstor/file-existence-action@v2
186
186
with :
187
187
files : " install/msvc/lib/hidapi.lib, \
188
188
install/msvc/bin/hidapi.dll, \
189
189
install/msvc/include/hidapi/hidapi.h, \
190
190
install/msvc/include/hidapi/hidapi_winapi.h"
191
191
fail : true
192
- - name : Check CMake Export Package
192
+ - name : Check CMake MSVC Export Package
193
193
shell : cmd
194
194
run : |
195
195
cmake ^
@@ -205,26 +205,26 @@ jobs:
205
205
working-directory : build/msvc
206
206
run : ctest -C RelWithDebInfo --no-compress-output --output-on-failure
207
207
208
- - name : Configure CMake NMake
208
+ - name : Configure CMake NMake MSVC
209
209
shell : cmd
210
210
run : |
211
211
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
212
212
cmake -G"NMake Makefiles" -B build\nmake -S hidapisrc -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHIDAPI_WITH_TESTS=ON -DHIDAPI_BUILD_PP_DATA_DUMP=ON -DHIDAPI_ENABLE_ASAN=ON -DCMAKE_INSTALL_PREFIX=install\nmake -DHIDAPI_BUILD_HIDTEST=ON "-DCMAKE_C_FLAGS=%MSVC_COMPILE_FLAGS%"
213
- - name : Build CMake NMake
213
+ - name : Build CMake NMake MSVC
214
214
working-directory : build\nmake
215
215
shell : cmd
216
216
run : |
217
217
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
218
218
nmake install
219
- - name : Check artifacts NMake
219
+ - name : Check artifacts CMake NMake MSVC
220
220
uses : andstor/file-existence-action@v2
221
221
with :
222
222
files : " install/nmake/lib/hidapi.lib, \
223
223
install/nmake/bin/hidapi.dll, \
224
224
install/nmake/include/hidapi/hidapi.h, \
225
225
install/nmake/include/hidapi/hidapi_winapi.h"
226
226
fail : true
227
- - name : Check CMake Export Package NMake
227
+ - name : Check CMake NMake MSVC Export Package
228
228
shell : cmd
229
229
run : |
230
230
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
@@ -237,10 +237,48 @@ jobs:
237
237
"-DCMAKE_C_FLAGS=%MSVC_COMPILE_FLAGS%"
238
238
cd build\nmake_test
239
239
nmake install
240
- - name : Run CTest NMake
240
+ - name : Run CTest NMake MSVC
241
241
working-directory : build\nmake
242
242
run : ctest --no-compress-output --output-on-failure
243
243
244
+ - name : Configure CMake NMake ClangCL
245
+ shell : cmd
246
+ run : |
247
+ call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
248
+ cmake -G"NMake Makefiles" -B build\clang_cl -S hidapisrc -D CMAKE_C_COMPILER=clang-cl -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHIDAPI_WITH_TESTS=ON -DHIDAPI_BUILD_PP_DATA_DUMP=ON -DHIDAPI_ENABLE_ASAN=OFF -DCMAKE_INSTALL_PREFIX=install\clang_cl -DHIDAPI_BUILD_HIDTEST=ON "-DCMAKE_C_FLAGS=%MSVC_COMPILE_FLAGS%"
249
+ - name : Build CMake NMake ClangCL
250
+ working-directory : build\clang_cl
251
+ shell : cmd
252
+ run : |
253
+ call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
254
+ nmake install
255
+ - name : Check artifacts CMake NMake ClangCL
256
+ uses : andstor/file-existence-action@v2
257
+ with :
258
+ files : " install/clang_cl/lib/hidapi.lib, \
259
+ install/clang_cl/bin/hidapi.dll, \
260
+ install/clang_cl/include/hidapi/hidapi.h, \
261
+ install/clang_cl/include/hidapi/hidapi_winapi.h"
262
+ fail : true
263
+ - name : Check CMake NMake ClangCL Export Package
264
+ shell : cmd
265
+ run : |
266
+ call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
267
+ cmake ^
268
+ -G"NMake Makefiles" ^
269
+ -B build\clang_cl_test ^
270
+ -S hidapisrc\hidtest ^
271
+ -D CMAKE_C_COMPILER=clang-cl ^
272
+ -Dhidapi_ROOT=install\clang_cl ^
273
+ -DCMAKE_INSTALL_PREFIX=install\clang_cl_test ^
274
+ "-DCMAKE_C_FLAGS=%MSVC_COMPILE_FLAGS%"
275
+ cd build\clang_cl_test
276
+ cmake --build . --target install
277
+ - name : Run CTest NMake ClangCL
278
+ shell : cmd
279
+ working-directory : build/clang_cl
280
+ run : ctest -C RelWithDebInfo --no-compress-output --output-on-failure
281
+
244
282
- name : Configure CMake MinGW
245
283
shell : cmd
246
284
run : |
@@ -288,14 +326,14 @@ jobs:
288
326
steps :
289
327
- uses : actions/checkout@v3
290
328
- uses : microsoft/setup-msbuild@v1.1
291
- - name : MSBuild x86
329
+ - name : MSBuild x86 MSVC
292
330
run : msbuild windows\hidapi.sln /p:Configuration=Release /p:Platform=Win32
293
331
- name : Check artifacts x86
294
332
uses : andstor/file-existence-action@v2
295
333
with :
296
334
files : " windows/Release/hidapi.dll, windows/Release/hidapi.lib, windows/Release/hidapi.pdb"
297
335
fail : true
298
- - name : MSBuild x64
336
+ - name : MSBuild x64 MSVC
299
337
run : msbuild windows\hidapi.sln /p:Configuration=Release /p:Platform=x64
300
338
- name : Check artifacts x64
301
339
uses : andstor/file-existence-action@v2
0 commit comments