Speed up CI builds: cache v4, google-test caching, parallel C++ compiles#1248
Open
Speed up CI builds: cache v4, google-test caching, parallel C++ compiles#1248
Conversation
Agent-Logs-Url: https://github.com/mickem/nscp/sessions/941664cc-41b3-499f-ba42-ac8833d7d81d Co-authored-by: mickem <1434697+mickem@users.noreply.github.com>
Agent-Logs-Url: https://github.com/mickem/nscp/sessions/941664cc-41b3-499f-ba42-ac8833d7d81d Co-authored-by: mickem <1434697+mickem@users.noreply.github.com>
Agent-Logs-Url: https://github.com/mickem/nscp/sessions/941664cc-41b3-499f-ba42-ac8833d7d81d Co-authored-by: mickem <1434697+mickem@users.noreply.github.com>
mickem
approved these changes
May 4, 2026
Agent-Logs-Url: https://github.com/mickem/nscp/sessions/51c4030d-c730-48ed-bb40-8522aae3f228 Co-authored-by: mickem <1434697+mickem@users.noreply.github.com>
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.
CI build speed improvements:
actions/cache@v3→actions/cache@v4in all composite actionsgoogle-testcomposite actionmsbuild /m,make -j$(nproc))mickem/build-boostinvocation inactions/cache@v4so the heaviest step (Boost compile, several minutes) only runs on cache miss. The action is idempotent: on a cache-hit b2 sees everything up-to-date and theroot/librarydiroutputs are populated almost instantly. Cache keys include version, platform, runtime/static flag, and toolset/xp variant so the build-windows-legacy XP boost is keyed separately from the modern build-windows boosts.This is the change that should produce a real, noticeable speed-up on Windows CI.