-
Notifications
You must be signed in to change notification settings - Fork 199
Should the Nix CI do caching #1078
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Good idea, working on it It doesn't seem to produce an improvement to use https://github.com/cachix/install-nix-action#how-do-i-add-a-binary-cache It would be an improvement to have The current errors are:
|
As far as I can tell, the Cachix GitHub Action (https://github.com/cachix/install-nix-action) is designed to only cache on Cachix, and is not compatible with https://github.com/actions/cache Can we set up a free Cachix account for |
I suppose yes. The conditions are:
|
Should be enough. i.i.r.c. the GitHub caching action indicated this needs less than three GB. (It progressed far enough to inform me of that, but nonetheless could not successfully use the cache.) |
I created a personal account on cachix.org, but when I created organization |
Does this work yet? I see cachix cache jumping into action, but the build time is still 20min: https://github.com/haskell/hackage-server/runs/6777589545?check_suite_focus=true |
Apparently it is not working yet, I'll try a few more things: #1086 |
Note that I've granted hackage-server organization 50GB free plan, let me know if that's enough! |
Thank you @domenkozar , I think 50GB is more than enough |
I have another project https://github.com/peterbecich/halogen-chess which has a GitHub Action for a Nix build. I know that |
I expect this will yield an improvement: #1154 |
Cachix works for the Nix Flake
https://github.com/haskell/hackage-server/actions/runs/4411857013/jobs/7730762854 |
down to 8 minutes, https://github.com/haskell/hackage-server/actions/runs/4550618189 I think the caching is working, closing issue |
@peterbecich You added a Nix CI:
hackage-server/.github/workflows/nix-shell.yml
Lines 16 to 18 in 2d4f3f7
Does this cache between builds?
If not, would caching be possible, maybe along the lines of:
https://github.com/cachix/install-nix-action#how-do-i-add-a-binary-cache
I am asking because the Nix workflow takes at least 17min each time, whereas Haskell CI can get down to <10min (probably thanks to caching).
(Haskell CI takes long when it cannot restore from the cache, see e.g.: https://github.com/haskell/hackage-server/runs/6437475007?check_suite_focus=true#step:16:23)
The text was updated successfully, but these errors were encountered: