Skip to content

Commit cdc0a1c

Browse files
authored
Fix CI MSVC sanitize builds (#138)
1 parent 6fceb1a commit cdc0a1c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/full_build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
- windows-2019
7070
build_type:
7171
- Release
72+
- Sanitize
7273
cpp_compiler:
7374
- clang-cl.exe
7475
- cl.exe
@@ -83,6 +84,10 @@ jobs:
8384
# clang-cl requires the toolset flag be set correctly
8485
- cpp_compiler: clang-cl.exe
8586
toolset: ClangCL
87+
exclude:
88+
# MSVC Clang toolchain fails sanitization
89+
- cpp_compiler: clang-cl.exe
90+
build_type: Sanitize
8691

8792
env:
8893
output_folder: ${{github.workspace}}/build/
@@ -107,6 +112,7 @@ jobs:
107112
options: |
108113
LIBDIVIDE_BUILD_TESTS=ON
109114
CMAKE_BUILD_TYPE=${{ matrix.build_type }}
115+
${{ matrix.build_type == 'Sanitize' && 'LIBDIVIDE_ENABLE_SANITIZERS=ON' || '' }}
110116
build-args: --config ${{ matrix.build_type }}
111117

112118
- name: Test

0 commit comments

Comments
 (0)