From c74c6cfd8404449029cae163531056e7493fe80f Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Tue, 7 Apr 2026 21:42:29 +0100 Subject: [PATCH] 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. --- .github/ci-windows.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/ci-windows.py b/.github/ci-windows.py index a808812e408..964558a2e20 100755 --- a/.github/ci-windows.py +++ b/.github/ci-windows.py @@ -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: