2 ms·
There are multiple caching mechanisms and you can use them together to provide multiple levels. The mentioned cachix (you can also create S3 bucket that can al
by takeda 5y ago
There are multiple caching mechanisms and you can use them together to provide multiple levels.
The mentioned cachix (you can also create S3 bucket that can also provide similar functionality).
If you set up gitlab runner in NixOS [1], you can follow example configuration which allows to utilize nix local caching.
You can of course also use the normal gitlab caching, you will need to ensure the container has /cache mount.
[1] https://search.nixos.org/options?channel=21.05&from=0&size=50&sort=relevance&query=gitlab-runner https://search.nixos.org/options?channel=21.05&from=0&size=5...
- takeda 5y agoHere's the gitlab-runner configuration I mentioned in the post (can't edit anymore)[1]. With this you benefit of local caching that nix does. What this means is that if you have a branch and it compiled, and run test. Then as you merge and no source files changed (which happens most of the time), the build on master is instant. [1] https://github.com/NixOS/nixpkgs/blob/ce38fecabe49a76fcd08d03e7562b44b97109aa7/nixos/modules/services/continuous-integration/gitlab-runner.nix#L255-L293 https://github.com/NixOS/nixpkgs/blob/ce38fecabe49a76fcd08d0...