Nix based CI on PRs! - #14
Merged
Merged
Conversation
ErinvanderVeen
force-pushed
the
erin/nix-ci-2
branch
2 times, most recently
from
February 20, 2026 10:36
968821d to
b189c16
Compare
This reduces overall time, but more imporantly disk usage. Which is currently preventing CI from running at all.
ErinvanderVeen
force-pushed
the
erin/nix-ci-2
branch
from
February 20, 2026 11:28
b189c16 to
9814111
Compare
ErinvanderVeen
force-pushed
the
erin/nix-ci-2
branch
from
February 20, 2026 19:32
2de9042 to
a076fd4
Compare
ErinvanderVeen
marked this pull request as ready for review
February 20, 2026 20:43
Contributor
|
I like having formatting / linting checks as separate GitHub checks, so that 1) we get quick feedback if formatting fails 2) we still know if code builds / test pass. Is that something that would be possible in this setup ? |
Collaborator
Author
|
Yes it is! |
ErinvanderVeen
force-pushed
the
erin/nix-ci-2
branch
2 times, most recently
from
February 23, 2026 14:26
2cc1a3e to
8b80dde
Compare
ErinvanderVeen
force-pushed
the
erin/nix-ci-2
branch
from
February 23, 2026 14:26
8b80dde to
821bab8
Compare
Contributor
|
Looks very good! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Nix-based CI! This CI simply runs
nix build .#hydraJobs.x86_64-linux.required.native, which you can also run locally! Together with that change, it also cleans up a bunch of stuff from theouroboros-consensusNix infra that we don't really need/want. Primarily the different GHC versions, and the cross compilation stuff.It does format and lint our code, which is nice. And also explains changes I made to existing Haskell code.
Finally, to avoid excessive build times, a cachix cache was created and is pushed to in CI. If you ever update the index states, this CI might fail due to disk usage, in which case you will likely have to push the nix store paths to the cachix store manually.