actions / actions/cache

Is it possible to share cache between github hosted and self-hosted runners?

Open
#1,755 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.6k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

I‘d like to use a cache produced on a self-hosted runner on GitHub-hosted runner.

On my tests it didn't work even though their keys are exactly the same.

This is my cache build workflow,

Image

but in the verify workflow cache miss occurred despite even they have the exact same key.

Image

Is it possible to share cache between github hosted and self-hosted runners?
Thanks in advance

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the linked cache-build and verify workflow runs, including their runner types and cache keys. Determine whether the cache action supports sharing between GitHub-hosted and self-hosted runners, and make the supported behavior and any required configuration clear in the issue response or documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions
Domain
ci-cd
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.