Every machine.dev plan now comes with its own GitHub Actions cache. It sits in the same region as your runner, the first 25 GB per repository is free, and your workflows don't change. It's been in beta with a handful of teams for the last few weeks. Today it's generally available on every plan.
A team admin flips one switch in Settings → Cache. That's the whole setup.
Why we built it
GitHub's cache lives in Azure, because of course it does. That's a long way from our runners, so every cache restore was a trip across the internet while you paid for the runner to wait.
For a small cache that doesn't matter. ML caches aren't small. A pip cache with torch in it is 3 GB, and GitHub only gives you 10 GB per repository, so big caches get evicted fast too.
Paying GPU prices to watch a progress bar was not our finest piece of engineering.
What changes in your workflow
Nothing. actions/cache, setup-python with cache: pip, Docker's type=gha cache and the rest keep working exactly as written. They just restore from a lot closer. We tested the 20 most common caching setups and every one of them got a hit.
How fast
| Workload | Size | GitHub | machine.dev |
|---|---|---|---|
| Random data | 4.3 GB | 80.3 s | 13.1 s |
pip install torch cache | 3.0 GB | 53.5 s | 9.9 s |
| Hugging Face model | 773 MB | 12.9 s | 3.2 s |
npm install cache | 122 MB | 1.5 s | 1.2 s |
Small caches barely change, because there wasn't much time to save. The bigger your cache, the more you get back.
What it costs
The first 25 GB per repository, in each region, is free. If a repo needs more, raise its limit in Settings → Cache and pay $0.10 per GiB-month for what you actually store above that.
It's plans only. Builder is $25 a month and comes with $25 of compute, so the cache comes along for free. Pay-as-you-go teams keep using GitHub's cache, same as before.
How it compares
GitHub gives you 10 GB per repository and charges for more. Other runner providers either have you run a cache in your own cloud account or swap actions/cache for their own fork in every workflow. Ours needs neither. You flip a switch and your existing steps get faster.
Worth knowing
It's region-locked, so if a job runs in a region your repo hasn't used before, its first run there starts cold. Like GitHub's cache, any job in the repository can restore its entries, so don't put secrets in cached paths. And if one job should stay on GitHub's cache, add cache=false to its label.
For now: it's live, it's free up to 25 GB a repo, and the switch is waiting in Settings → Cache. Your GPUs can go back to doing GPU things.
The details are in the cache docs.