Debug-action-cache 〈2024〉
Dependencies cached on a Linux runner may fail when restored on a macOS runner due to absolute pathing or library version mismatches.
to get system-level information about the runner environment. 2. Verify Your Cache Keys Cache misses often occur because the generated by hashFiles() doesn't match what was previously saved. debug-action-cache
The debug log doesn't warn you about OS mismatch, but it gives you the metadata (runner OS) if you scroll up to the "Created on" line. This tells you to add runner.os to your key. Dependencies cached on a Linux runner may fail
You run a Windows runner and a Linux runner. They share the same cache key. Debug logs reveal: Verify Your Cache Keys Cache misses often occur
GitHub provides a management interface to see what is currently stored: Navigate to your repository on GitHub. Click the tab. In the left sidebar, under Management , click Caches .