-
Notifications
You must be signed in to change notification settings - Fork 3
perf(ci): switch to nix-quick-install-action for faster CI #298
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR improves CI performance by switching from the cachix/install-nix-action to nixbuild/nix-quick-install-action, aiming to reduce Nix installation time from ~30-60s to ~1s on Linux runners.
Changes:
- Replaced
cachix/[email protected]withnixbuild/nix-quick-install-action@v30 - Removed the
github_access_tokeninput parameter that was previously passed to the Cachix action
Comments suppressed due to low confidence (1)
.github/actions/setup-nix/action.yaml:2
- The description mentions 'configure cache' but the action no longer configures any cache after switching to nix-quick-install-action. This should be updated to accurately reflect that the action only installs Nix and tools from nixpkgs.
description: 'Install Nix and configure cache'
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 1 file
2586c01 to
6e008ac
Compare
Replace cachix/install-nix-action with nixbuild/nix-quick-install-action. This reduces Nix installation time from ~30s to ~1s on Linux. Key benefits: - Single-user installation (no daemon overhead) - Deterministic installation for a given action version - Minimal setup optimized for CI environments Measured improvement: Setup Nix step reduced from 25s to 19s (~24% faster)
6e008ac to
5f8b877
Compare
)" This reverts commit 6e82978.
Summary
cachix/install-nix-actionwithnixbuild/nix-quick-install-actionKey differences
Test plan
Summary by cubic
Switch CI to nixbuild/nix-quick-install-action for faster, deterministic single-user Nix installs. Measured improvement: Nix setup ~24% faster (25s → 19s) on Linux.
Written for commit 5f8b877. Summary will update on new commits.