[better]: Debug-action-cache
Some code generators include the current date/time in the header of the generated file. This invalidates the cache every single minute.
The actions/cache action outputs a boolean variable named cache-hit . You can print this to verify if the restoration actually succeeded. debug-action-cache