What is the maximum size of a single cache entry in GitHub Actions?
Select an answer to reveal the explanation.
Short Explanation and Infographic
A single cache entry can be up to 10 GB — and the total cache storage per repository is 10 GB too, with LRU eviction when exceeded.
Full explanation below image
Full Explanation
GitHub Actions cache has two limits: individual cache entries can be up to 10 GB, and the total cache storage per repository is also 10 GB (shared across all branches and workflows). When the repository cache storage exceeds 10 GB, GitHub evicts the least recently used (LRU) cache entries to make room. Cache entries that haven't been accessed in 7 days are also deleted. These limits mean you should be strategic about what you cache — very large build artifacts might not benefit from caching if the entry size approaches the limit. For larger caching needs, consider using a self-hosted cache server or cloud storage.