Skip to content

Commit 2d42145

Browse files
committed
CI-windows.yml: also run with AddressSanitizer
1 parent 6d45cd7 commit 2d42145

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/CI-windows.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,25 @@ jobs:
6464
set SIMPLECPP_EXE_PATH=.\${{ matrix.config }}\simplecpp.exe
6565
python -m pytest integration_test.py -vv || exit /b !errorlevel!
6666
67+
- name: Build (AddressSanitizer)
68+
run: |
69+
msbuild -m simplecpp.sln /p:Configuration=${{ matrix.config }} /p:Platform=x64 /t:Clean;Rebuild || exit /b !errorlevel!
70+
env:
71+
_CL_: /fsanitize=address /fsanitize-address-use-after-return
72+
73+
- name: Test (AddressSanitizer)
74+
run: |
75+
.\${{ matrix.config }}\testrunner.exe || exit /b !errorlevel!
76+
77+
- name: Selfcheck (AddressSanitizer)
78+
run: |
79+
.\${{ matrix.config }}\simplecpp.exe simplecpp.cpp -e || exit /b !errorlevel!
80+
81+
- name: integration test (AddressSanitizer)
82+
run: |
83+
set SIMPLECPP_EXE_PATH=.\${{ matrix.config }}\simplecpp.exe
84+
python -m pytest integration_test.py -vv || exit /b !errorlevel!
85+
6786
- name: Run CMake (c++17)
6887
run: |
6988
cmake -S . -B build.cxx17 -G "Visual Studio 17 2022" -A x64 -Werror=dev --warn-uninitialized -DCMAKE_CXX_STANDARD=17 -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!

0 commit comments

Comments
 (0)