Skip to content

use !cancelled() instead of always() when caching stuff #593

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

Merged
merged 2 commits into from
Mar 25, 2025
Merged

Conversation

penelopeysm
Copy link
Member

@penelopeysm penelopeysm commented Mar 25, 2025

see #590 and #591 for previous context

this pr changes it such that if the job is cancelled, the _freeze and .julia directories aren't cached. it now only caches if the step failed due to build errors. this avoids inadvertently caching stuff that hasn't even built yet (eg if the run was cancelled very early on)

also closes #594

@penelopeysm penelopeysm merged commit 4278c3d into main Mar 25, 2025
1 check passed
@penelopeysm penelopeysm deleted the py/gha branch March 25, 2025 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.julia caches stored by publish workflow on main branch can't be used by PRs on other branches
1 participant