ci: enable vcpkg binary caching in main_ci#44
Conversation
The build matrix recompiled vcpkg dependencies every run: VCPKG_DEFAULT_BINARY_CACHE pointed at a workspace-local dir that is wiped each run, so it never persisted. Switch to the GitHub Actions cache as a vcpkg binary source so dependency .libs are restored across runs and matrix configs instead of rebuilt. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Warning Review limit reached
More reviews will be available in 6 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Why
The
windowsbuild matrix recompiles vcpkg dependencies from source on every run.VCPKG_DEFAULT_BINARY_CACHEpoints at${{ github.workspace }}/vcpkg-cache— a workspace-local dir that's wiped each run, so it never actually persisted anything.What
Switch to the GitHub Actions cache as a vcpkg binary source:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"(replaces the dead local-dir cache).github-scriptstep re-exportsACTIONS_CACHE_URL/ACTIONS_RUNTIME_TOKEN(GitHub only exposes these to the github-script runtime; vcpkg'sx-ghaprovider needs them).Now dependency
.libsare restored across runs and matrix configs instead of recompiled. Validated locally on a sibling repo: a warm cache turns a dep build into a ~ms restore.Part of a stack-wide sweep (CommonLibVR, CrashLoggerSSE, Buffout4, EngineFixesSkyrim64 already done).
🤖 Generated with Claude Code