Skip to content

Commit 0015432

Browse files
committed
Fix vcpkg download failure.
1 parent 72953ab commit 0015432

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/windows-native.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ jobs:
121121
run: |
122122
dir_u=$(cygpath -u ${{ env.VCPKG_DIR }})
123123
echo "VCPKG_DIR_U=$dir_u" >> $GITHUB_ENV
124+
# See https://github.com/microsoft/vcpkg/issues/41339#issuecomment-2394308597 for lines below.
125+
export SystemDrive="$SYSTEMDRIVE"
126+
export SystemRoot="$SYSTEMROOT"
127+
export windir="$WINDIR"
124128
vcpkg install --triplet ${{ matrix.arch.triplet }} bzip2 zlib json-c getopt dirent ${{ matrix.backend }}
125129
126130
- name: Upload vcpkg logs on failure

0 commit comments

Comments
 (0)