mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 14:40:26 -05:00
vcpkg only reads VCPKG_BUILD_TYPE from the triplet file, so the -DVCPKG_BUILD_TYPE=release passed to the top-level CMake call never had any effect and every port was built in both debug and release. On a cold cache that is roughly half of an 85 minute vcpkg step. Add release-only overlay triplets for x64-windows and x64-linux and select them from the workflow matrix. They are separate triplets rather than an override of the stock ones so local developer builds keep their debug dependencies. VCPKG_HOST_TRIPLET is set alongside the target triplet, otherwise the 12 host-tool ports (openssl and protobuf among them) would be built a second time under the stock triplet. The triplet is part of the vcpkg cache key since it changes every binary's ABI hash.