-
Notifications
You must be signed in to change notification settings - Fork 1
Use lake exe cache get to skip rebuilding Mathlib #7
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -103,8 +103,8 @@ jobs: | |||||
|
|
||||||
| - name: Build PhysLib | ||||||
| if: steps.check.outputs.has_changes == 'true' | ||||||
| run: cd physlib && lake build | ||||||
| timeout-minutes: 90 | ||||||
| run: cd physlib && lake exe cache get && lake build | ||||||
| timeout-minutes: 30 | ||||||
|
||||||
| timeout-minutes: 30 | |
| timeout-minutes: 90 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build step is now chained with
&&, so any transient failure inlake exe cache get(network, cache server, missing artifact) will preventlake buildfrom running. If the intent is “use cache when available, otherwise fall back to building”, makecache getnon-fatal (e.g., separate step or handle its exit code) so the workflow still proceeds tolake build.