build: re-enable msvc-asan job on CI (#4289)
This commit is contained in:
parent
f98516ddd5
commit
535efdf319
22
.github/workflows/CI-win.yml
vendored
22
.github/workflows/CI-win.yml
vendored
@ -25,16 +25,12 @@ jobs:
|
|||||||
- {toolchain: Visual Studio 16 2019, arch: x64, server: 2019}
|
- {toolchain: Visual Studio 16 2019, arch: x64, server: 2019}
|
||||||
- {toolchain: Visual Studio 17 2022, arch: Win32, server: 2022}
|
- {toolchain: Visual Studio 17 2022, arch: Win32, server: 2022}
|
||||||
- {toolchain: Visual Studio 17 2022, arch: x64, server: 2022}
|
- {toolchain: Visual Studio 17 2022, arch: x64, server: 2022}
|
||||||
# Currently broken, see https://github.com/libuv/libuv/issues/4210
|
- {toolchain: Visual Studio 17 2022, arch: x64, server: 2022, config: ASAN}
|
||||||
#- {toolchain: Visual Studio 17 2022, arch: x64, server: 2022, config: ASAN}
|
|
||||||
- {toolchain: Visual Studio 17 2022, arch: x64, server: 2022, config: UBSAN}
|
- {toolchain: Visual Studio 17 2022, arch: x64, server: 2022, config: UBSAN}
|
||||||
- {toolchain: Visual Studio 17 2022, arch: arm64, server: 2022}
|
- {toolchain: Visual Studio 17 2022, arch: arm64, server: 2022}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Envinfo
|
|
||||||
run: npx envinfo
|
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: cmd
|
|
||||||
run:
|
run:
|
||||||
cmake -S . -B build -DBUILD_TESTING=ON
|
cmake -S . -B build -DBUILD_TESTING=ON
|
||||||
-G "${{ matrix.config.toolchain }}" -A ${{ matrix.config.arch }}
|
-G "${{ matrix.config.toolchain }}" -A ${{ matrix.config.arch }}
|
||||||
@ -43,17 +39,23 @@ jobs:
|
|||||||
|
|
||||||
cmake --build build --config RelWithDebInfo
|
cmake --build build --config RelWithDebInfo
|
||||||
|
|
||||||
|
${{ matrix.config.config == 'ASAN' && 'Copy-Item -Path "build\\*.exe" -Destination "build\\RelWithDebInfo\\"' || '' }}
|
||||||
|
|
||||||
|
${{ matrix.config.config == 'ASAN' && 'Copy-Item -Path "build\\*.dll" -Destination "build\\RelWithDebInfo\\"' || '' }}
|
||||||
|
|
||||||
ls -l build
|
ls -l build
|
||||||
- name: platform_output
|
|
||||||
if: ${{ matrix.config.arch != 'arm64' }}
|
ls -l build\\RelWithDebInfo
|
||||||
shell: cmd
|
|
||||||
run:
|
|
||||||
build\\RelWithDebInfo\\uv_run_tests.exe platform_output
|
|
||||||
- name: platform_output_a
|
- name: platform_output_a
|
||||||
if: ${{ matrix.config.arch != 'arm64' }}
|
if: ${{ matrix.config.arch != 'arm64' }}
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run:
|
run:
|
||||||
build\\RelWithDebInfo\\uv_run_tests_a.exe platform_output
|
build\\RelWithDebInfo\\uv_run_tests_a.exe platform_output
|
||||||
|
- name: platform_output
|
||||||
|
if: ${{ matrix.config.arch != 'arm64' }}
|
||||||
|
shell: cmd
|
||||||
|
run:
|
||||||
|
build\\RelWithDebInfo\\uv_run_tests.exe platform_output
|
||||||
- name: Test
|
- name: Test
|
||||||
# only valid with libuv-master with the fix for
|
# only valid with libuv-master with the fix for
|
||||||
# https://github.com/libuv/leps/blob/master/005-windows-handles-not-fd.md
|
# https://github.com/libuv/leps/blob/master/005-windows-handles-not-fd.md
|
||||||
|
|||||||
@ -767,6 +767,12 @@ endif()
|
|||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set(CMAKE_DEBUG_POSTFIX d)
|
set(CMAKE_DEBUG_POSTFIX d)
|
||||||
|
get_filename_component(CMAKE_C_COMPILER_DIR ${CMAKE_C_COMPILER} DIRECTORY)
|
||||||
|
if(ASAN)
|
||||||
|
file(INSTALL "${CMAKE_C_COMPILER_DIR}/llvm-symbolizer.exe" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
|
||||||
|
file(INSTALL "${CMAKE_C_COMPILER_DIR}/clang_rt.asan_dynamic-x86_64.dll" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
|
||||||
|
file(INSTALL "${CMAKE_C_COMPILER_DIR}/clang_rt.asan_dbg_dynamic-x86_64.dll" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
message(STATUS "summary of build options:
|
message(STATUS "summary of build options:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user