ci: enable vcpkg binary caching for Windows build#138
Conversation
Use vcpkg's built-in GitHub Actions binary cache (x-gha) to avoid rebuilding CppUTest from source on every CI run. First run populates the cache; subsequent runs pull pre-built binaries. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Windows CI job in the GitHub Actions workflow is enhanced with vcpkg binary caching support by adding a job-level environment variable and a new step that exports cache-related credentials from the GitHub Actions environment. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
☀️ Quality Summary 🚦 Unit Tests (GCC): 99% successful (✔️ 479 passed, 🙈 3 skipped) Created by Quality Monitor v1.14.0 (#f3859fd). More details are shown in the GitHub Checks Result. |
☀️ Quality Summary 🚦 Unit Tests (GCC): 99% successful (✔️ 479 passed, 🙈 3 skipped) Created by Quality Monitor v1.14.0 (#f3859fd). More details are shown in the GitHub Checks Result. |
Purpose
Speed up the Windows CI job by caching compiled vcpkg packages.
Change Description
Enable vcpkg's built-in GitHub Actions binary cache (
x-gha). Thevcpkg install cpputeststep currently builds CppUTest from source on every run (~2 minutes). With binary caching, the first run populates the cache and subsequent runs pull pre-built binaries in seconds.Uses
actions/github-scriptto export the requiredACTIONS_CACHE_URLandACTIONS_RUNTIME_TOKENenvironment variables, following vcpkg's recommended approach.Test Evidence
No code changes — CI-only. The first run on this PR will populate the cache (same speed as before). The speedup will be visible on subsequent runs.
Areas Affected
.github/workflows/ci.yml—windows-build-and-testjob only.Summary by CodeRabbit