mirror of
https://github.com/google/adk-go.git
synced 2026-10-28 08:34:37 +08:00
Every job in the Go workflow shared one Go cache key. The guardrail job compiles nothing and finishes first, so it saved a ~9 KB entry under that key. The test and lint jobs then got an exact hit on it, and actions/cache does not save on an exact hit, so their builds were never stored and every run compiled from scratch. Make the cache opt-in through a cache-key input on the Setup action, and give each test and lint job its own value. Jobs that pass none, including guardrail, nightly and apidiff, run without a cache, which is what they effectively had. Co-authored-by: Jan Wojtas <56300703+wojtas000@users.noreply.github.com>