jetify-com / devbox-install-action

31 stars 15 forks source link

Fix macos caching issue #19

Closed LucilleH closed 11 months ago

LucilleH commented 11 months ago

Description

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. 🎉 🎉 🎉

closes https://github.com/jetpack-io/devbox-install-action/issues/13

LucilleH commented 11 months ago

cc: @alex35mil

alex35mil commented 11 months ago

Thanks! Though I reverted the addition of the Devbox to CI for now as apparently I can't use it for Windows builds yet.