-
Notifications
You must be signed in to change notification settings - Fork 45
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
Allow cache entries to be reused on different runner operating systems #27
Comments
Thanks for the report. To make this work, we'd need to do the following:
PRs welcome! |
I took a look and found another snag: since the paths to Gradle User Home are different on Linux vs Windows, just passing |
Given that with the latest version we also take the arch as key and not all dependencies/caches (like Kotlin MPP) supports multi OS out of the box, I think we can close this issue. |
I think this might still be useful for entries extracted from Gradle User Home. For example, we extract the dependency jars into a separate entry that can be reused even as other parts of Gradle User Home change. Some of these extracted entries are not inherently tied to OS/arch and should/could be reusable between different OSes. |
GitHub Actions/Cache supports enableCrossOsArchive to reuse the same cache from different operating systems. This is very handy for matrix builds using multiple OS to further reduce the CI time (and costs).
https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cross-os-cache
The text was updated successfully, but these errors were encountered: