Skip to content

chore: reducing vcpkg cache size by building and caching only release versions - #1608

Merged
sachinpro merged 1 commit into
mainfrom
reducing_gha_cache_size
Aug 20, 2026
Merged

chore: reducing vcpkg cache size by building and caching only release versions#1608
sachinpro merged 1 commit into
mainfrom
reducing_gha_cache_size

Conversation

@sachinpro

@sachinpro sachinpro commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

By default, vcpkg compiles and caches both Debug and Release configurations for every dependency specified in
vcpkg.json. Since CI pipelines and releases only require Release packages, building both doubles compilation time and consumes significant GitHub Actions cache and runner disk space (~10GB+ per runner).

This PR introduces custom overlay triplets for windows and macOS with set(VCPKG_BUILD_TYPE release), reducing CI cache sizes by ~50% and speeding up dependency build and cache upload/download steps.

@sachinpro
sachinpro force-pushed the reducing_gha_cache_size branch from 6bf15ba to 557f9af Compare July 24, 2026 01:37
@sachinpro
sachinpro force-pushed the reducing_gha_cache_size branch from 557f9af to ad33bad Compare July 24, 2026 02:07
@sachinpro
sachinpro force-pushed the reducing_gha_cache_size branch from ad33bad to 18f56fd Compare July 24, 2026 02:15
@sachinpro
sachinpro force-pushed the reducing_gha_cache_size branch from 18f56fd to d25903b Compare July 29, 2026 15:59
@sachinpro
sachinpro force-pushed the reducing_gha_cache_size branch from d25903b to d01fff6 Compare August 14, 2026 22:51
@sachinpro
sachinpro force-pushed the reducing_gha_cache_size branch from d01fff6 to 18ef524 Compare August 14, 2026 23:10
@sachinpro
sachinpro force-pushed the reducing_gha_cache_size branch from 18ef524 to d27f541 Compare August 14, 2026 23:29
@sachinpro sachinpro changed the title Reducing gha cache size chore: reducing GHA cache size by building and caching only release versions Aug 14, 2026
@sachinpro
sachinpro marked this pull request as ready for review August 14, 2026 23:40
@sachinpro
sachinpro requested a review from a team as a code owner August 14, 2026 23:40
@sachinpro
sachinpro requested a review from logachev August 14, 2026 23:40
@sachinpro sachinpro changed the title chore: reducing GHA cache size by building and caching only release versions chore: reducing vcpkg cache size by building and caching only release versions Aug 14, 2026
@sachinpro
sachinpro force-pushed the reducing_gha_cache_size branch 2 times, most recently from dc7bd92 to 2a38a97 Compare August 15, 2026 00:10
@sachinpro
sachinpro force-pushed the reducing_gha_cache_size branch from 2a38a97 to bec8e4c Compare August 15, 2026 01:02
@sachinpro
sachinpro force-pushed the reducing_gha_cache_size branch from bec8e4c to fb026c2 Compare August 15, 2026 01:04
@sachinpro
sachinpro force-pushed the reducing_gha_cache_size branch from fb026c2 to 7f540e8 Compare August 15, 2026 01:47
@sachinpro
sachinpro merged commit 24af46e into main Aug 20, 2026
30 of 34 checks passed
@sachinpro
sachinpro deleted the reducing_gha_cache_size branch August 20, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants