-
Notifications
You must be signed in to change notification settings - Fork 228
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
Build: Use actions/cache #2277
Comments
My current PoC is at hoffie@cache-autobuild-deps. Will submit a PR after some more testing and history cleanups. Relevant runs: |
As expected, some rather small performance improvements kick in:
Note: I have included the Linux job despite there being no changes. This shows that there is some variance in runtime duration. I had tried to calculate absolute/relative improvements, but the improvements by caching would have been much larger (17 minutes for Android) than what could be explained by the shorter Prepare step duration. Therefore, I assume that run time is highly influenced by external factors on Github Actions Runners. So, take those numbers with a grain of salt, they're only from two runs. |
Is this closed by #2284? I wasn't sure from the comments. |
Yes, it was correctly auto-closed by #2284. The remaining to do is covered by #2412. I'll add it to the PR description to clarify. Everything else should be covered. Umm: I missed that the version pinning for brew/create-dmg happens in a different file. So, in theory, this should have been part of this PR. #2412 will have it anyway. |
Describe the bug
We should use actions/cache to improve build speeds and resiliency against temporary flakiness on external dependencies.
The following things to check come to mind:
cacheLocation
nowbrew if added via Switch to create-dmg #2207Tracked in Build: Cache Mac's brew install (create-dmg) #2412Depends on #2276 to avoid caching a bad state.
To Reproduce
Random flakiness such as Qt download failures.
Expected behavior
Dependencies should be cached. Temporary download failures should not break the build.
Screenshots
https://github.com/jamulussoftware/jamulus/runs/4936344409?check_suite_focus=true
Additional context
https://docs.github.com/en/actions/advanced-guides/caching-dependencies-to-speed-up-workflows
https://github.com/actions/cache
The text was updated successfully, but these errors were encountered: