You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
Thanks for the report. To make this work, we'd need to do the following:
Identify which parts of Gradle User Home can be safely reused across operating systems. For example, downloaded jars are likely to be compatible, compiled build scrips may not be.
I took a look and found another snag: since the paths to Gradle User Home are different on Linux vs Windows, just passing enableCrossOsArchive: true when saving and restoring isn't enough. Any files to be shared would need to be first moved to an OS agnostic location before calling saveCache or restoreCache. Without this, the entry pattern values are different, and the entries won't be shared.
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: