Skip to content
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

ci: enable Nix caching #22

Merged
merged 2 commits into from
Mar 27, 2024
Merged

ci: enable Nix caching #22

merged 2 commits into from
Mar 27, 2024

Conversation

AshesOfEther
Copy link
Contributor

@AshesOfEther AshesOfEther commented Mar 20, 2024

This will make CI runs go faster when some things don't need to be rebuilt. I replaced cachix/install-nix-action with nixbuild/nix-quick-install-action, since it's required by nix-community/cache-nix-action.

Do not merge yet, it still needs to be tested. Ready pending approval.

@AshesOfEther
Copy link
Contributor Author

Blocked on #23, since the new action for installing Nix does not set up channels, and doing so should not be needed anyway.

@AshesOfEther
Copy link
Contributor Author

Rebased on main after merging #23

@AshesOfEther
Copy link
Contributor Author

Tested and successfully working. https://github.com/f-klubben/fnix/actions shows a time saving of 30-40 seconds on building Stregsystemet without changes. This will likely be more significant if and when we add more CI checks, build more packages on CI, and eventually automatically deploy to the server.

@AshesOfEther AshesOfEther merged commit 8925c3b into main Mar 27, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants