falcondev-oss/github-actions-cache-server
关于
用 Rust 编写的高速、节省内存且可自行部署的 GitHub Actions 缓存服务器。可直接替代官方缓存服务,无需修改即可与 actions/cache 配合使用。支持将缓存存储在 S3、GCS、Azure Blob 或文件系统中,并使用 SQLite、Postgres 或 MySQL。
系统与基础设施可以做什么
- 🔥 Works with everything that uses the cache: actions/cache, actions/setup-node & friends, BuildKit type=gha, any tool built on @actions/cache
- 🗄️ Your storage: filesystem, S3 (RustFS, MinIO, R2, ...), Google Cloud Storage or Azure Blob Storage
- 🐘 Your database: SQLite, PostgreSQL or MySQL
- 🔒 Secure by default: verifies the runner's OIDC token, scopes every cache to its repository, signs each upload URL
实测星标增长
- 24小时
- 0
- 7天
- +4
- 15天
- +6
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文🚀 GitHub Actions Cache Server
A self-hosted, drop-in replacement for GitHub's cache service, written in Rust. Point your self-hosted runners at it and every actions/cache step, setup-* cache and docker buildx type=gha cache stays on your own hardware. No workflow changes.
| GitHub Actions Cache Server | |
|---|---|
| Image size | 29 MB |
| Startup to healthy | 0.5 s |
| Idle memory | 3 MiB |
| Upload (8 × 128 MiB, parallel) | 2.3 GiB/s |
| First download | 7.9 GiB/s |
| Lookups (64 concurrent) | 34,000/s, p99 7 ms |
| Small save + restore (256 KiB) | 1,143/s |
SQLite + filesystem on a Ryzen 9 5950X with NVMe. Reproduce with cargo run --release --example benchmark.
Features
- 🔥 Works with everything that uses the cache:
actions/cache,actions/setup-node& friends, BuildKittype=gha, any tool built on@actions/cache - 🗄️ Your storage: filesystem, S3 (RustFS, MinIO, R2, ...), Google Cloud Storage or Azure Blob Storage
- 🐘 Your database: SQLite, PostgreSQL or MySQL
- 🔒 Secure by default: verifies the runner's OIDC token, scopes every cache to its repository, signs each upload URL
- ⚡ Direct downloads: optionally hand runners a signed storage URL so restores skip the server
- 🧹 Runs itself: age- and size-based eviction, orphan cleanup, self-healing when storage drifts
- 📊 Observable: Prometheus
/metrics,/health, management API with OpenAPI docs - ☸️ Deploy anywhere: multi-arch image (amd64/arm64), Docker Compose or Helm, GitHub Enterprise Server
Quick start
1. Run the server
services:
cache-server:
image: ghcr.io/falcondev-oss/github-actions-cache-server
ports:
- '3000:3000'
environment:
API_BASE_URL: http://localhost:3000
volumes:
- cache-data:/app/.data
volumes:
cache-data:
2. Point your runners at it
Swap the runner image for our fork and set one variable:
image: ghcr.io/falcondev-oss/actions-runner:latest
env:
CUSTOM_ACTIONS_RESULTS_URL: http://cache-server:3000/
3. There is no step 3. Your workflows already use it.
Documentation
👉 https://gha-cache-server.falcondev.io/getting-started 👈
- Ephemeral runners with a local cache
- Actions Runner Controller (ARC)
- GitHub cloud cache vs hostPath vs a local cache server
- For agents:
llms.txt. Every page is also Markdown at<url>.md.
The docs live in website/.
探索相关项目
加载中…