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

speed up Nix CI job by cache + flake check #186

Closed

Conversation

KiaraGrouwstra
Copy link
Contributor

try and speed up Nix check in CI as discussed in #180

@KiaraGrouwstra
Copy link
Contributor Author

ok i'm not sure this helped shave off time :(

@ErrorNoInternet
Copy link

ErrorNoInternet commented Feb 17, 2024

An extremely hacky way is to possibly run each build phase manually, using nix develop, e.g. buildPhase.

And instead of using a Nix binary cache, you could use actions/cache to cache the target/ folder that buildPhase generates when calling cargo build.

Or if you guarantee that the devShell and package have the same inputs, you could just nix develop -c cargo b and use actions/cache to cache the target/ folder.

@KiaraGrouwstra
Copy link
Contributor Author

i guess i'll close cuz https://github.com/sodiboo/niri-flake kinda addressed this

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.

None yet

2 participants