Debug-action-cache
Mastering debug-action-cache : How to Troubleshoot CI/CD Caching Issues
Enable runner diagnostic logging by setting the secret ACTIONS_RUNNER_DEBUG to true . Step 2: Extract and Compare Cache Keys
If you find that specific targets are constantly rebuilding, I can help you check the or analyze the toolchain configuration . debug-action-cache
Run the build in a clean environment and save the execution log. Make a trivial change or run the build a second time. Export the second execution log.
Ensure that your path configuration uses universal glob patterns or platform-specific variables (like $ env.HOME ) to prevent the runner from caching empty directories. Make a trivial change or run the build a second time
: Caches are isolated by branch. A PR branch can access the main branch cache, but the main branch cannot access caches created in a PR branch. 5. Debugging Tools & Extensions
: If your cache never hits, ensure your hashFiles function is pointing to the correct dependency file (e.g., package-lock.json or go.sum ). Use key: $ runner.os -build-$ hashFiles('**/package-lock.json') to ensure the cache invalidates only when dependencies change. : Caches are isolated by branch
The advantages of using Debug Action Cache are numerous: