macOS caching is broken. This PR fixes it. This is related to gtar not having sudo permission, but /nix/store requires sudo. There are many many related issues out there. eg. https://github.com/actions/cache/issues/749
I also switched to using DeterminateSystems nix installer. However, I noticed that even though cache is successfully restored in the latest round of CICD, we are still fetching the binaries from remote? (at least based on the log lines) Why is that?
I suspect that I'm missing some sqlite data in the cached files. cc @savil @gcurtis if any of you have insights into this.
EDIT: SOLVED. Added xdg paths in the cache and it reduces the time by half. 🎉 🎉 🎉
Description
macOS caching is broken. This PR fixes it. This is related to
gtar
not havingsudo
permission, but/nix/store
requires sudo. There are many many related issues out there. eg. https://github.com/actions/cache/issues/749I also switched to using DeterminateSystems nix installer. However, I noticed that even though cache is successfully restored in the latest round of CICD, we are still fetching the binaries from remote? (at least based on the log lines) Why is that?
I suspect that I'm missing some sqlite data in the cached files. cc @savil @gcurtis if any of you have insights into this.
EDIT: SOLVED. Added xdg paths in the cache and it reduces the time by half. 🎉 🎉 🎉
closes https://github.com/jetpack-io/devbox-install-action/issues/13