paris-branch / dancelor

A chancelor for Scottish country dance musicians
https://dancelor.org
0 stars 0 forks source link

Setup Nix caches for Dancelor #231

Closed Niols closed 1 year ago

Niols commented 1 year ago

This PR follows the recent announcement of Cachix that finally gave a free 5GB to organisations. There is now a “Paris Branch” Cachix organisation and a dancelor.cachix.org cache. The PR sets up CI so that it feeds the Cachix instance. It also adds this Cachix instance (and the one for pre-commit-hooks) in the flake. For non-Nix users, this will make no difference. For Nix users, this will allow to download the whole development environment instead of having to build it again. It will also make the Nix part of the CI much faster, but it was already tie with the OPAM part so the overall execution time will remain the same.

Niols commented 1 year ago

If our goal was to make the Nix CI faster, there would actually be better route, such as:

https://discourse.nixos.org/t/the-magic-nix-cache-a-github-action-for-speeding-up-your-nix-workflows/29665/

or

https://discourse.nixos.org/t/save-cachix-bandwith-and-your-time-with-phoenix-ci/29367/