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
{{ message }}
Repository navigation
Cross-OS caching: Cache in Ubuntu + OS matrix = no hit in Windows #591
Description
Trying to pass data between jobs using cache.
I'm currently using artifacts, but I don't need these files to be available for download, and it seems artifacts are slower (more upload/download), so I would like to use cache instead.
I use multiple OSes, but Windows does not seem to be able to see caches from Ubuntu.
The other way around is also true, Ubuntu can't see caches from Windows.
MacOS can see both.
I could understand if this had something to do with runners in different environments or something, but isn't caches stored elsewhere, and why can MacOS see both?
@eirikb@j-boivie Yes, this is due to a bug using zstd and BSD tar on Windows. You can fix this by adding GNU tar to the system path before running the cache step - see #576 (comment) for an example.
We plan to make GNU tar the default on Windows, but in the meantime I would recommend the workaround above. This fix is being tracked by actions/toolkit#552.
Activity
j-boivie commentedon May 20, 2021
I've run into something like this as well, but in my case a macOS job is not able to read the cache created from a Windows runner.
dhadka commentedon May 20, 2021
@eirikb @j-boivie Yes, this is due to a bug using
zstdand BSDtaron Windows. You can fix this by adding GNU tar to the system path before running the cache step - see #576 (comment) for an example.We plan to make GNU tar the default on Windows, but in the meantime I would recommend the workaround above. This fix is being tracked by actions/toolkit#552.
eirikb commentedon May 20, 2021
@dhadka Thank you. I've verified the workaround works. I'll close this issue since this is already being tracked.
For anyone stumbling over this issue, the workaround including OS matrix. looks like this:
Introduce auto releases for windows/macos/linux
Introduce auto releases for windows/macos/linux
Introduce auto releases for windows/macos/linux
Introduce auto releases for windows/macos/linux
Introduce auto releases for windows/macos/linux
Introduce auto releases for windows/macos/linux
Introduce auto releases for windows/macos/linux
Introduce auto releases for windows/macos/linux