Skip to content

Commit

Permalink
ASAN off
Browse files Browse the repository at this point in the history
  • Loading branch information
JoergAtGithub committed Oct 22, 2023
1 parent c671a92 commit 4851f5f
Showing 1 changed file with 40 additions and 38 deletions.
78 changes: 40 additions & 38 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,77 +204,79 @@ jobs:
shell: cmd
working-directory: build/msvc
run: ctest -C RelWithDebInfo --no-compress-output --output-on-failure

- name: Configure CMake ClangCL
- name: Configure CMake NMake MSVC
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
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=ON -DCMAKE_INSTALL_PREFIX=install\clang_cl -DHIDAPI_BUILD_HIDTEST=ON "-DCMAKE_C_FLAGS=%MSVC_COMPILE_FLAGS%"
- name: Build CMake ClangCL
working-directory: build\clang_cl
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%"
- name: Build CMake NMake MSVC
working-directory: build\nmake
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
nmake install
- name: Check artifacts ClangCL
- name: Check artifacts CMake NMake MSVC
uses: andstor/file-existence-action@v2
with:
files: "install/clang_cl/lib/hidapi.lib, \
install/clang_cl/bin/hidapi.dll, \
install/clang_cl/include/hidapi/hidapi.h, \
install/clang_cl/include/hidapi/hidapi_winapi.h"
files: "install/nmake/lib/hidapi.lib, \
install/nmake/bin/hidapi.dll, \
install/nmake/include/hidapi/hidapi.h, \
install/nmake/include/hidapi/hidapi_winapi.h"
fail: true
- name: Check CMake ClangCL Export Package
- name: Check CMake Export Package NMake MSVC
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
cmake ^
-B build\clang_cl_test ^
-G"NMake Makefiles" ^
-B build\nmake_test ^
-S hidapisrc\hidtest ^
-Dhidapi_ROOT=install\clang_cl ^
-DCMAKE_INSTALL_PREFIX=install\clang_cl_test ^
-Dhidapi_ROOT=install\nmake ^
-DCMAKE_INSTALL_PREFIX=install\nmake_test ^
"-DCMAKE_C_FLAGS=%MSVC_COMPILE_FLAGS%"
cd build\clang_cl_test
cmake --build . --target install
- name: Run CTest ClangCL
shell: cmd
working-directory: build/clang_cl
run: ctest -C RelWithDebInfo --rerun-failed --output-on-failure
cd build\nmake_test
nmake install
- name: Run CTest NMake MSVC
working-directory: build\nmake
run: ctest --no-compress-output --output-on-failure

- name: Configure CMake NMake MSVC
- name: Configure CMake NMake ClangCL
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
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%"
- name: Build CMake NMake MSVC
working-directory: build\nmake
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%"
- name: Build CMake NMake ClangCL
working-directory: build\clang_cl
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
nmake install
- name: Check artifacts NMake MSVC
- name: Check artifacts CMake NMake ClangCL
uses: andstor/file-existence-action@v2
with:
files: "install/nmake/lib/hidapi.lib, \
install/nmake/bin/hidapi.dll, \
install/nmake/include/hidapi/hidapi.h, \
install/nmake/include/hidapi/hidapi_winapi.h"
files: "install/clang_cl/lib/hidapi.lib, \
install/clang_cl/bin/hidapi.dll, \
install/clang_cl/include/hidapi/hidapi.h, \
install/clang_cl/include/hidapi/hidapi_winapi.h"
fail: true
- name: Check CMake Export Package NMake
- name: Check CMake NMake ClangCL Export Package
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
cmake ^
-G"NMake Makefiles" ^
-B build\nmake_test ^
-B build\clang_cl_test ^
-S hidapisrc\hidtest ^
-Dhidapi_ROOT=install\nmake ^
-DCMAKE_INSTALL_PREFIX=install\nmake_test ^
-Dhidapi_ROOT=install\clang_cl ^
-DCMAKE_INSTALL_PREFIX=install\clang_cl_test ^
"-DCMAKE_C_FLAGS=%MSVC_COMPILE_FLAGS%"
cd build\nmake_test
nmake install
- name: Run CTest NMake
working-directory: build\nmake
run: ctest --no-compress-output --output-on-failure
cd build\clang_cl_test
cmake --build . --target install
- name: Run CTest NMake ClangCL
shell: cmd
working-directory: build/clang_cl
run: ctest -C RelWithDebInfo --rerun-failed --output-on-failure

- name: Configure CMake MinGW
shell: cmd
Expand Down

0 comments on commit 4851f5f

Please sign in to comment.