Repository navigation
Stabilize vcpkg CI caches and Release builds - #87
Merged
Merged
Conversation
Pin CI to the manifest vcpkg baseline and cache dependencies by platform and feature set. Use release-only triplets for Release builds, and pass the existing MSBuild log to the parity check to avoid rebuilding with different features.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The Windows workflow conditions implicitly require dependency-job success, so a failed Win32 dependency job on a push to main skips its consumer instead of allowing it to install missing packages.
1 open issue
What changed in this PR
This PR stabilizes dependency caching for MapWinGIS6’s CMake and MSBuild CI pipelines and reduces dependency work for Release builds.
Changes:
- Pins CI’s vcpkg checkout to the manifest baseline and introduces dependency-cache jobs separated by platform and feature set.
- Adds release-only triplets, separate installation trees, and guards against using Release dependencies for Debug builds.
- Reuses the existing MSBuild log for parity reporting, avoiding a rebuild with different dependency features.
Validation was limited to source inspection; builds and tests were not run.
| File | Description |
|---|---|
docs/CMAKE-MIGRATION.md |
Documents release-only CMake installation trees and configuration restrictions. |
docs/BUILDING.md |
Explains baseline pinning, cache management, Release triplets, and log reuse. |
Directory.Build.targets |
Rejects Debug builds with release-only dependencies. |
Directory.Build.props |
Selects release-only triplets and separate MSBuild installation trees. |
cmake/MwgVcpkg.cmake |
Separates Release dependency trees and restricts multi-config builds. |
cmake/MwgPlatform.cmake |
Accepts release-only triplets and adds Debug guards. |
build/triplets/x86-windows-v145-release.cmake |
Adds the Win32 release-only dependency triplet. |
build/triplets/x64-windows-v145-release.cmake |
Adds the x64 release-only dependency triplet. |
build/scripts/Test-BuildConfiguration.ps1 |
Adds triplet-selection, consistency, and Debug-guard checks. |
build/scripts/Sync-VcpkgBinaryCache.ps1 |
Adds cache snapshots, change detection, and archive pruning. |
build/scripts/Compare-CompileCommands.ps1 |
Normalizes release-only installation paths in parity reports. |
build/scripts/bootstrap-vcpkg.ps1 |
Adds baseline checkout support and exports the selected root to CI. |
.github/workflows/vcpkg-deps.yml |
Adds reusable dependency installation and cache publishing. |
.github/workflows/cmake-vs.yml |
Extracts reusable CMake builds with Release dependency selection. |
.github/workflows/build.yml |
Connects dependency jobs to consumers and adds cache cleanup. |
.github/workflows/build-msbuild.yml |
Extracts reusable MSBuild builds and passes their logs to parity reporting. |
.ai/memory/build/dependencies.md |
Records cache-management and parity-log guidance. |
Review effort: Balanced
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
pmeems
enabled auto-merge (squash)
November 19, 2026 13:03
pmeems
disabled auto-merge
November 19, 2026 15:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Pin CI to the manifest vcpkg baseline and cache dependencies by platform and feature set. Use release-only triplets for Release builds, and pass the existing MSBuild log to the parity check to avoid rebuilding with different features.