ci: Match VCPKG_HOST_TRIPLET to VCPKG_TARGET_TRIPLET

Using a non-default target triplet introduced a regression because
packages with `"host": true` in their vcpkg configurations were still
picking up the default `x64-windows` triplet, effectively building both
release and debug packages.

Fix this regression by setting `VCPKG_HOST_TRIPLET` explicitly.
This commit is contained in:
Hennadii Stepanov
2026-04-07 21:42:29 +01:00
parent d2844c6a4f
commit c74c6cfd84

View File

@@ -72,6 +72,11 @@ def generate(ci_type):
"build",
"-Werror=dev",
"--preset=vs2026",
# Using x64-windows-release for both host and target triplets
# to ensure vcpkg builds only release packages, thereby optimizing
# build time.
# See https://github.com/microsoft/vcpkg/issues/50927.
"-DVCPKG_HOST_TRIPLET=x64-windows-release",
"-DVCPKG_TARGET_TRIPLET=x64-windows-release",
] + GENERATE_OPTIONS[ci_type]
if run(command, check=False).returncode != 0: