on windows test clang in release without asan

This commit is contained in:
Nikita Smith
2026-06-02 12:10:21 -07:00
committed by Ryan Fleury
parent b4cfc61408
commit 1de3be3b8b
2 changed files with 88 additions and 63 deletions
+3 -18
View File
@@ -118,30 +118,16 @@ jobs:
mode:
- debug
- release
exclude:
- { compiler: clang, mode: release } # clang runs OOM in release with ASAN
steps:
- name: checkout
uses: actions/checkout@v6
- name: run-torture
shell: cmd
run: |
rem find path to clang
for /f "tokens=*" %%i in ('where clang') do set clang_path=%%~dpi
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
rem set clang path before MSVC's clang path
set PATH=%clang_path%;%PATH%
rem parse out clang version number out of --version to build path to the folder with ASAN DLL
for /f "tokens=3 delims=. " %%v in ('clang -v 2^>^&1 ^| findstr version') do set clang_version=%%v
if "${{matrix.compiler}}" == "clang" set PATH=%clang_path%..\lib\clang\%clang_version%\lib\windows;%PATH%
call build meta raddbg_non_graphical || exit /b 1
call build asan meta torture radlink radbin mule_main mule_module "${{matrix.mode}}" "${{matrix.compiler}}" || exit /b 1
cd build
torture --gen_crash_dump || exit /b 1
where clang
clang --version
call run_tests.bat ${{ matrix.compiler }} ${{ matrix.mode }} -- --gen_crash_dump || exit /b 1
- name: upload torture crash dumps
if: failure()
uses: actions/upload-artifact@v7
@@ -153,4 +139,3 @@ jobs:
build/*.pdb
build/torture_artifacts/**
if-no-files-found: ignore