Skip to content

ci: enable vcpkg binary caching in main_ci#44

Merged
alandtse merged 1 commit into
masterfrom
ci/vcpkg-binary-cache
Jun 3, 2026
Merged

ci: enable vcpkg binary caching in main_ci#44
alandtse merged 1 commit into
masterfrom
ci/vcpkg-binary-cache

Conversation

@alandtse

@alandtse alandtse commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Why

The windows build matrix recompiles vcpkg dependencies from source on every run. VCPKG_DEFAULT_BINARY_CACHE points 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).
  • A github-script step re-exports ACTIONS_CACHE_URL / ACTIONS_RUNTIME_TOKEN (GitHub only exposes these to the github-script runtime; vcpkg's x-gha provider needs them).

Now dependency .libs are 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

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>
@coderabbitai

coderabbitai Bot commented Jun 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@alandtse, we couldn't start this review because you've reached your PR review rate limit.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6f3e18fe-7ece-4cb7-9db8-01551d409b10

📥 Commits

Reviewing files that changed from the base of the PR and between 0a0a8df and 5f0855b.

📒 Files selected for processing (1)
  • .github/workflows/main_ci.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/vcpkg-binary-cache

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@alandtse
alandtse merged commit 5189b7b into master Jun 3, 2026
11 checks passed
@alandtse
alandtse deleted the ci/vcpkg-binary-cache branch June 3, 2026 22:18
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