hendrikmuhs / ccache-action

github action to speedup building using ccache
MIT License
114 stars 52 forks source link

Cache is not restored any longer #158

Closed vadz closed 1 year ago

vadz commented 1 year ago

I have no idea what happened but since relatively recently (I've missed when exactly has it started, as I was on vacation during this time...), the action doesn't work at all any longer because it fails to restore the previously saved cache. All I see in the "Restore cache" section of the logs is "No cache found." when it used to work before.

E.g., without any changes to the CI workflow or anything else, the cache was restored in this build from 2 weeks ago, but a more recent build doesn't find anything.

I have no idea what happened here and what to do about it. It's not specific to this repository neither, I also see it in another (private) repository I use. Does anybody have any ideas?

vadz commented 1 year ago

It's not specific to this repository neither

But I can't reproduce it in a small test repository I have just created for testing this, there the cache is restored successfully. So maybe it is something specific to my workflow(s), although I still have no idea what could I be doing to prevent restore from working...

vadz commented 1 year ago

Sorry, it looks like the problem in my repository was just due to the fact that all caches from master have been evicted by the PRs opened while I was on vacation. After merging some of them into master, things work fine again.

Sorry again for the noise.