From e20d5f59130eeeb90e286b832918ac48c850cba8 Mon Sep 17 00:00:00 2001 From: Nickolay Olshevsky Date: Tue, 20 Aug 2024 16:26:52 +0300 Subject: [PATCH] Fix --- .github/workflows/windows-native.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/windows-native.yml b/.github/workflows/windows-native.yml index 128080609b..163ce92939 100644 --- a/.github/workflows/windows-native.yml +++ b/.github/workflows/windows-native.yml @@ -160,9 +160,10 @@ jobs: cmake -B build -G "Visual Studio 17 2022" \ -A ${{ matrix.arch.name }} \ -T ${{ matrix.toolset }} \ - -DBUILD_SHARED_LIBS=${{ matrix.shared_libs}} \ + -DCMAKE_BUILD_TYPE=Debug \ + -DBUILD_SHARED_LIBS=${{ matrix.shared_libs}} \ -DENABLE_SANITIZERS=${{ matrix.sanitizers }} \ - -DCRYPTO_BACKEND=${{ matrix.backend }} \ + -DCRYPTO_BACKEND=${{ matrix.backend }} \ -DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_DIR }}/scripts/buildsystems/vcpkg.cmake . - name: Configure using CMake prefix path @@ -183,7 +184,8 @@ jobs: shell: bash run: | export PATH=${{ env.VCPKG_DIR_U }}/installed/${{ matrix.arch.triplet }}/bin:$PATH - cmake --build build --parallel ${{ env.CORES }} --config Release + echo $PATH + VERBOSE=1 cmake --build build --parallel ${{ env.CORES }} --config Release - name: Test shell: bash @@ -193,6 +195,12 @@ jobs: # ctest --parallel ${{ env.CORES }} --test-dir build -C Release --output-on-failure run: | export PATH=${{ env.VCPKG_DIR_U }}/installed/${{ matrix.arch.triplet }}/bin:$PATH + if [[ "${{ matrix.sanitizers }}" == "on" ]]; then + # Following is the worst line of this file + ls -la "c/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64" + export PATH="c/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64":$PATH + fi + echo $PATH mkdir -p "build/Testing/Temporary" cp "cmake/CTestCostData.txt" "build/Testing/Temporary" ctest --parallel ${{ env.CORES }} --test-dir build -C Release --output-on-failure