Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also save cache on job failure #14

Closed
TimJentzsch opened this issue Aug 6, 2023 · 0 comments · Fixed by #16
Closed

Also save cache on job failure #14

TimJentzsch opened this issue Aug 6, 2023 · 0 comments · Fixed by #16
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@TimJentzsch
Copy link
Collaborator

Unfortunately, the cache action only saves the cache if the workflow succeeded.
For cargo, this doesn't make much sense as e.g. a failing test doesn't influence the build artifacts.

The difficulty here is that the action does not provide any option to configure this.
We could use the https://github.com/actions/cache/tree/main/save action to manually save the cache, but then we can't put it at the end of the job, since compose actions don't have a way to set a post action to my knowledge...

@TimJentzsch TimJentzsch added enhancement New feature or request help wanted Extra attention is needed labels Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant