Skip to content

GHA/windows: set VCPKG_APPLOCAL_DEPS=OFF for vcpkg jobs - #22189

Closed
vszakats wants to merge 4 commits into
curl:masterfrom
vszakats:vcpkgdllcopy
Closed

vszakats wants to merge 4 commits into
curl:masterfrom
vszakats:vcpkgdllcopy

Conversation

@vszakats

@vszakats vszakats commented Jun 26, 2026 •

Copy link
Copy Markdown
Member

Add the necessary directory to PATH instead.

To disable a vcpkg feature (auto-copying DLL dependencies next to the
build targets) that was causing CI flakiness in the libssh2 repository.
In curl it currently cannot cause flakiness because targets (with DLL
dependencies) reside in separate directories.

AFAIU this vcpkg feature has been present and enabled by default for
a long time, but only a recent update made it visible in the log and
flaky at the same time, due to switching implementation.

This patch removes log noise and potential issues, improves efficiency,
and saves disk space: 74MB → 71 in UWP, and 69MB → 65 in the arm64 job.
Time saving is negligible with current jobs.

Refs:
libssh2/libssh2#2114
libssh2/libssh2@30a0484
microsoft/vcpkg#52315
https://learn.microsoft.com/vcpkg/reference/installation-tree-layout


uwp/MSBuild:
Before: https://github.com/curl/curl/actions/runs/28226112430/job/83618374862
After: https://github.com/curl/curl/actions/runs/28234192080/job/83644940422?pr=22189

arm64/Ninja:
Before: https://github.com/curl/curl/actions/runs/28226112430/job/83618374893
After: https://github.com/curl/curl/actions/runs/28235822558/job/83650422625?pr=22189

MSBuild in 'build' step:

  curl.vcxproj -> D:\a\curl\curl\bld\src\Debug\curl.exe
  D:/a/curl/curl/bld/src/Debug/curl.exe: message: deploying dependencies
  C:\vcpkg\installed\x64-uwp\debug\bin\zd.dll -> D:\a\curl\curl\bld\src\Debug\zd.dll done
  D:/a/curl/curl/bld/src/Debug\zd.dll: message: deploying dependencies
  C:\vcpkg\installed\x64-uwp\debug\bin\libssh2.dll -> D:\a\curl\curl\bld\src\Debug\libssh2.dll done
  D:/a/curl/curl/bld/src/Debug\libssh2.dll: message: deploying dependencies

MSBuild in 'build tests' step:

  D:/a/curl/curl/bld/src/Debug/curlinfo.exe: message: deploying dependencies
  D:/a/curl/curl/bld/tests/server/Debug/servers.exe: message: deploying dependencies
[...]
  D:/a/curl/curl/bld/tests/tunit/Debug/tunits.exe: message: deploying dependencies
  C:\vcpkg\installed\x64-uwp\debug\bin\libssh2.dll -> D:\a\curl\curl\bld\tests\tunit\Debug\libssh2.dll done
  D:/a/curl/curl/bld/tests/tunit/Debug\libssh2.dll: message: deploying dependencies
  C:\vcpkg\installed\x64-uwp\debug\bin\zd.dll -> D:\a\curl\curl\bld\tests\tunit\Debug\zd.dll done
  D:/a/curl/curl/bld/tests/tunit/Debug\zd.dll: message: deploying dependencies
  units.vcxproj -> D:\a\curl\curl\bld\tests\unit\Debug\units.exe
  D:/a/curl/curl/bld/tests/unit/Debug/units.exe: message: deploying dependencies
  C:\vcpkg\installed\x64-uwp\debug\bin\libssh2.dll -> D:\a\curl\curl\bld\tests\unit\Debug\libssh2.dll done
  D:/a/curl/curl/bld/tests/unit/Debug\libssh2.dll: message: deploying dependencies
  C:\vcpkg\installed\x64-uwp\debug\bin\zd.dll -> D:\a\curl\curl\bld\tests\unit\Debug\zd.dll done
  D:/a/curl/curl/bld/tests/unit/Debug\zd.dll: message: deploying dependencies
  libtests.vcxproj -> D:\a\curl\curl\bld\tests\libtest\Debug\libtests.exe
  D:/a/curl/curl/bld/tests/libtest/Debug/libtests.exe: message: deploying dependencies
  C:\vcpkg\installed\x64-uwp\debug\bin\zd.dll -> D:\a\curl\curl\bld\tests\libtest\Debug\zd.dll done
  D:/a/curl/curl/bld/tests/libtest/Debug\zd.dll: message: deploying dependencies
  C:\vcpkg\installed\x64-uwp\debug\bin\libssh2.dll -> D:\a\curl\curl\bld\tests\libtest\Debug\libssh2.dll done
  D:/a/curl/curl/bld/tests/libtest/Debug\libssh2.dll: message: deploying dependencies

To disable a vcpkg feature (auto-copying DLL dependencies next to the
build targets) that was causing CI flakiness in the libssh2 repository.
These operations are also unnecessary in these CI setups.

In curl this feature doesn't seem to kick in with current setup, but
let's keep it off just in case.

Refs:
libssh2/libssh2#2114
libssh2/libssh2@30a0484
@vszakats
vszakats marked this pull request as draft June 26, 2026 11:07
@github-actions github-actions Bot added Windows Windows-specific CI Continuous Integration labels Jun 26, 2026
@vszakats
vszakats marked this pull request as ready for review June 26, 2026 11:24
@vszakats
vszakats marked this pull request as draft June 26, 2026 11:30
@vszakats
vszakats marked this pull request as ready for review June 26, 2026 12:07
@vszakats vszakats closed this in 8be2daa Jun 26, 2026
@vszakats
vszakats deleted the vcpkgdllcopy branch June 26, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build CI Continuous Integration performance Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

1 participant