From 9b5cfc9ce724a22fcd5f6dd8d5b26f7850cb3e44 Mon Sep 17 00:00:00 2001 From: Nickolay Olshevsky Date: Sat, 5 Oct 2024 10:36:18 +0300 Subject: [PATCH] Fix vcpkg download failure. --- .github/workflows/windows-native.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/windows-native.yml b/.github/workflows/windows-native.yml index a388d7f58..79b2cdee7 100644 --- a/.github/workflows/windows-native.yml +++ b/.github/workflows/windows-native.yml @@ -121,6 +121,10 @@ jobs: run: | dir_u=$(cygpath -u ${{ env.VCPKG_DIR }}) echo "VCPKG_DIR_U=$dir_u" >> $GITHUB_ENV + # See https://github.com/microsoft/vcpkg/issues/41339#issuecomment-2394308597 for lines below. + export SystemDrive="$SYSTEMDRIVE" + export SystemRoot="$SYSTEMROOT" + export windir="$WINDIR" vcpkg install --triplet ${{ matrix.arch.triplet }} bzip2 zlib json-c getopt dirent ${{ matrix.backend }} - name: Upload vcpkg logs on failure