admin管理员组文章数量:1287150
I'm attempting to share a cache between workflows running on macOS-14 and Ubuntu-22.04 using GitHub Actions. According to the GitHub Actions cache documentation, setting enableCrossOsArchive
to true
should allow the cache to be used across different operating systems. However, I'm finding that each OS creates its own separate cache.
My workflow snippet looks like this:
- name: Cache GRASS Sample Dataset
id: cached-data
uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1
with:
path: sample-data/nc_spm_full_v2alpha2.tar.gz
key: nc_spm_full_v2alpha2.tar.gz
enableCrossOsArchive: true
My questions are:
- Are there any additional conditions or configurations required to share caches across different OSes using
enableCrossOsArchive
? - Could there be any known issues or limitations that might cause the cache to be separated per OS despite this setting?
- Has anyone successfully used cross-OS caching with this setup, and if so, what did you do differently?
- Is the caching method implemented differently on macOS and Ubuntu, which might be causing this issue?
Any insights or guidance would be greatly appreciated!
本文标签:
版权声明:本文标题:macos - Why isn’t my cross-OS cache shared when using enableCrossOsArchive: true in GitHub Actions? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741282442a2370084.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论