From 3012047e1a51cd83b2126a6b7a0a3957ef54d841 Mon Sep 17 00:00:00 2001 From: Nickolay Olshevsky Date: Wed, 28 Aug 2024 17:08:32 +0300 Subject: [PATCH] CI: Update windows-native runner with VS version check for sanitizer build. --- .github/workflows/windows-native.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/windows-native.yml b/.github/workflows/windows-native.yml index 90d9cdb1a..b3a7603be 100644 --- a/.github/workflows/windows-native.yml +++ b/.github/workflows/windows-native.yml @@ -196,6 +196,11 @@ jobs: if [[ "${{ matrix.sanitizers }}" == "on" ]]; then # Since VS 2022 we need to add path to sanitizers lib to PATH to load it. Currently it is hardcoded for toolset v143. lib_dir=$(cygpath -u "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64") + if [[ ! -d "$lib_dir" ]]; then + echo "Looks like directory with sanitizer libs changed. Available ones:" + ls -la "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\" + exit 1 + fi export PATH=$lib_dir:$PATH fi mkdir -p "build/Testing/Temporary"