]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
GHA/windows: add workaround for upstream vcpkg issue
authorTal Regev <tal.regev@gmail.com>
Thu, 3 Oct 2024 04:15:01 +0000 (07:15 +0300)
committerViktor Szakats <commit@vsz.me>
Thu, 3 Oct 2024 09:28:11 +0000 (11:28 +0200)
Fixes:
```
error: https://github.com/google/brotli/archive/v1.1.0.tar.gz: WinHttpSendRequest failed with exit code 10106
```

Apply workaround:
https://github.com/microsoft/vcpkg/issues/41199#issuecomment-2378255699

Bug commit: https://github.com/microsoft/vcpkg-tool/commit/d3fc35774f86782f356ef0f9352ba857fa57302e#diff-33cf7c311a76d4a838f91b078c2f8cbc984557379f7b345a268ec6deb665a91eR666-R675
Fix commit: https://github.com/microsoft/vcpkg-tool/commit/3122da72b1e4bf98bfc3d51937e6ad6cc4292cdf
Fix PR: https://github.com/microsoft/vcpkg-tool/pull/1501

Fixes #15128
Reported-by: Viktor Szakats
Closes #15133

.github/workflows/windows.yml

index a471448250740129b2249694930ba882bb3c1f8e..3479460f617deef92ddea09decb53faa2a9da079 100644 (file)
@@ -729,7 +729,12 @@ jobs:
 
       - name: 'vcpkg build'
         timeout-minutes: 35
-        run: vcpkg x-set-installed ${{ matrix.install }} '--triplet=${{ matrix.arch }}-${{ matrix.plat }}'
+        run: |
+          # Temporary workaround pending: https://github.com/microsoft/vcpkg-tool/pull/1501
+          export SystemDrive="$SYSTEMDRIVE"
+          export SystemRoot="$SYSTEMROOT"
+          export windir="$WINDIR"
+          vcpkg x-set-installed ${{ matrix.install }} '--triplet=${{ matrix.arch }}-${{ matrix.plat }}'
 
       - name: 'cmake configure'
         timeout-minutes: 5