cq-flake
cq-flake copied to clipboard
Add a cachix cache
Seeing the github actions that are already used, it would be pretty trivial to add a step that uploads the built artifacts to a public cachix cache. This would remove the need for people to build everything themselves after each update.
it would be pretty trivial
Just a lurker here, but doing anything interesting in github actions is rarely trivial if you haven't done it before. If you're familiar with the workflow, make a PR? Agreed that this would be valuable.
I'm sorry, I didn't want to sound presumptuous. I'm willing to draft a PR but the project owner needs to create an account on cachix themselves and add the credentials in GitHub secrets.
I'm not a maintainer, but that does sound helpful!
For reference, I tried setting this up and it was pretty straightforward: https://github.com/justbuchanan/cq-flake/blob/main/.github/workflows/cachix.yml.
Steps:
- make a cachix account
- click "Create Cache" and give it a name
- in cache Settings -> Auth Tokens, click "Generate"
- Add the token to the github project under Settings -> Secrets and variables -> Actions -> Repository secrets
- Add the relevant cachix bits to the github actions workflow (see link above)
The first build took a very long time as expected, but the next build was under two minutes.