Commit Graph
8 Commits
Author SHA1 Message Date
saru 43f1755c0e Touch archives on hit and prune the cache store after restore
Record last use by touching the archive so the retention policy can
expire by access time, and run prune.sh after every restore (even on
miss) to keep the shared store trimmed: keep the 3 newest archives per
key-prefix family, expire anything older than 7 days, hard-cap the store
at 2 GB (oldest first, trumping the keep set), never touch files younger
than 1h, and drop stale run workspaces under ~/.cache/act older than 2
days.
2026-08-14 22:54:47 +08:00
saru d31ec2f341 Update README with two-step usage pattern (restore before build, save after) 2026-05-16 14:35:31 +08:00
saru 8cffda161a Update README with accurate single-path usage examples 2026-05-16 14:27:42 +08:00
saru 3a3c4d55e0 Simplify to local tar.xz filesystem cache, remove API dependency
- Store cache as tar.xz archives on runner filesystem at ~/.cache/.cache-store/
- No external API calls, no node.js, no curl needed
- Restore extracts archive if key matches, save creates one on miss
- Drastically simpler and more reliable for self-hosted runners
2026-05-16 14:10:29 +08:00
saru a7eff41c26 Replace actions/cache@v5 with local implementation, simplify key inputs
- Remove actions/cache@v5 dependency, implement cache API calls directly
  using curl, tar, and zstd against Gitea's /_apis/artifactcache/ API
- Drop 'key' input, add required 'key-prefix' and 'key-file' inputs
- Cache key is generated as key-prefix-<sha256-of-key-file>
- Update README with revised inputs and Rust-only examples
2026-05-16 14:09:30 +08:00
saru d5b194bf00 Update README with Rust-only examples 2026-05-16 14:02:38 +08:00
saru 48e43c2ed3 Replace Checkout action with Cache action for build file caching
Convert the composite action from Checkout to Cache that:
- Stores build files under ~/.cache/ by default
- Auto-generates cache keys from lockfile hashes
- Uses actions/cache@v5 for restore and save
- Supports custom path, key, key-file, and restore-keys inputs
- Exposes cache-hit output for conditional workflow steps
2026-05-16 14:01:37 +08:00
saru 4bd5fcfe71 Initial commit 2026-05-16 13:56:05 +08:00