Skip to content

Commit 4f6c03b

Browse files
committed
ci: vcpkg location had to be explicitly declared
1 parent c73b0cd commit 4f6c03b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build-all.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,11 @@ jobs:
258258
# Ensure zlib headers and library (zlib.lib / z.lib) are present in C:\unicorn
259259
if (-not (Test-Path "C:\unicorn\lib\zlib.lib") -or -not (Test-Path "C:\unicorn\include\zlib.h")) {
260260
Write-Host "Installing zlib static library via vcpkg..."
261-
vcpkg install zlib:x64-windows-static
262-
Copy-Item "C:\vcpkg\installed\x64-windows-static\lib\zlib.lib" "C:\unicorn\lib\zlib.lib" -Force
263-
Copy-Item "C:\vcpkg\installed\x64-windows-static\lib\zlib.lib" "C:\unicorn\lib\z.lib" -Force
264-
Copy-Item "C:\vcpkg\installed\x64-windows-static\include\zlib.h" "C:\unicorn\include\zlib.h" -Force
265-
Copy-Item "C:\vcpkg\installed\x64-windows-static\include\zconf.h" "C:\unicorn\include\zconf.h" -Force
261+
vcpkg install zlib:x64-windows-static --x-install-root=C:\vcpkg_installed
262+
Copy-Item "C:\vcpkg_installed\x64-windows-static\lib\*.lib" "C:\unicorn\lib\zlib.lib" -Force
263+
Copy-Item "C:\vcpkg_installed\x64-windows-static\lib\*.lib" "C:\unicorn\lib\z.lib" -Force
264+
Copy-Item "C:\vcpkg_installed\x64-windows-static\include\zlib.h" "C:\unicorn\include\zlib.h" -Force
265+
Copy-Item "C:\vcpkg_installed\x64-windows-static\include\zconf.h" "C:\unicorn\include\zconf.h" -Force
266266
}
267267
268268
if (Test-Path "C:\unicorn\include\zconf.h") {

0 commit comments

Comments
 (0)