Skip to content

Commit

Permalink
CI: Update windows-native runner with VS version check for sanitizer …
Browse files Browse the repository at this point in the history
…build.
  • Loading branch information
ni4 committed Aug 28, 2024
1 parent df62fc1 commit 3012047
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/windows-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3012047

Please sign in to comment.