Commit Graph

8 Commits

Author SHA1 Message Date
saru 985f68d26e Add more debug output: key-file, path input, expanded path, and archive path on save 2026-05-22 02:17:05 +08:00
saru d869804b36 Change path default to github.workspace 2026-05-22 02:02:56 +08:00
saru 403aede6f3 Create save-only action 2026-05-17 02:03:55 +08:00
saru 5cd61839b5 Add debug output for cache key, archive path, and cache path 2026-05-16 14:34:47 +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 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