Commit Graph

10 Commits

Author SHA1 Message Date
saru 403aede6f3 Create save-only action 2026-05-17 02:03:55 +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 5cd61839b5 Add debug output for cache key, archive path, and cache path 2026-05-16 14:34:47 +08:00
saru 8cffda161a Update README with accurate single-path usage examples 2026-05-16 14:27:42 +08:00
saru d327a5b85e Remove restore-keys fallback, exact key match only 2026-05-16 14:18:41 +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