ci: Match `VCPKG_HOST_TRIPLET` to `VCPKG_TARGET_TRIPLET`
What changed, and why it matters
This is a routine build-system fix for Bitcoin Core's Windows continuous integration (CI). It tells the vcpkg package manager to use the same release-only build configuration for both host and target packages, avoiding unnecessary debug builds and speeding up CI. There is no security relevance in the commit itself or in the supplied materials.
No security action required. Treat as a normal CI/build optimization change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit adds -DVCPKG_HOST_TRIPLET=x64-windows-release to the CMake generate command in .github/ci-windows.py so it matches the existing -DVCPKG_TARGET_TRIPLET=x64-windows-release. Without this, vcpkg’s host: true dependencies defaulted to x64-windows, which builds both release and debug variants, causing a CI regression (longer builds, not a runtime bug). The change is purely a CI optimization/fix.
Changed components
.github/ci-windows.pyInspect captured patch +5 / −0
diff --git a/.github/ci-windows.py b/.github/ci-windows.py
index a808812e..964558a2 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:
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.