ci: add actions/cache for Linux CI vcpkg installed packages#17
Merged
Conversation
- Add actions/cache@v5 to cache /tmp/vcpkg/installed across runner instances - Skip base package install on cache hit (like Windows CI) - Replace local /cache/vcpkg binary cache with x-gha binary caching - Fixes full vcpkg rebuilds when landing on a different self-hosted runner Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds GitHub Actions cloud caching for vcpkg installed packages in the Linux CI pipeline, mirroring the pattern already in place for Windows CI. Previously, the Linux job relied on a local directory (/cache/vcpkg) on the self-hosted runner, which is unavailable when the job lands on a different runner instance, forcing a full rebuild of openexr, imath, and ffmpeg from source.
Changes:
- Remove the local
/cache/vcpkgbinary cache directory in favour of GitHub Actions cloud caching viaactions/cache@v5scoped to/tmp/vcpkg/installed - Add a
actions/github-script@v8step to exportACTIONS_CACHE_URL/ACTIONS_RUNTIME_TOKENfor the self-hosted runner (required for it to access the GHA cache API) - Skip
vcpkg installon cache hit and scopeVCPKG_BINARY_SOURCES=clear;x-gha,readwriteto the install step only
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
added 2 commits
March 10, 2026 20:00
…ttribute to toRationalTime method
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.
Summary
Same fix as ArcForgesLabs/ArcVideo#15 — adds GitHub Actions cache for Linux CI vcpkg packages.
Changes
actions/cache@v5to cache/tmp/vcpkg/installedacross self-hosted runner instances/cache/vcpkgbinary cache withx-ghabinary cachingactions/github-scriptto export cache URL/token for vcpkg binary cachingProblem
When the CI job lands on a different self-hosted runner instance,
/tmp/vcpkgis empty and all packages (openexr, imath, ffmpeg) are rebuilt from source. Withactions/cache, the installed packages are stored in GitHub's cloud cache and restored regardless of which runner picks up the job.