Skip to content

Nix based CI on PRs! - #14

Merged
ErinvanderVeen merged 10 commits into
mainfrom
erin/nix-ci-2
Feb 23, 2026
Merged

Nix based CI on PRs!#14
ErinvanderVeen merged 10 commits into
mainfrom
erin/nix-ci-2

Conversation

@ErinvanderVeen

@ErinvanderVeen ErinvanderVeen commented Feb 18, 2026

Copy link
Copy Markdown
Collaborator

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 the ouroboros-consensus Nix 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.

@ErinvanderVeen
ErinvanderVeen force-pushed the erin/nix-ci-2 branch 2 times, most recently from 968821d to b189c16 Compare February 20, 2026 10:36
This reduces overall time, but more imporantly disk usage. Which is
currently preventing CI from running at all.
@ErinvanderVeen
ErinvanderVeen marked this pull request as ready for review February 20, 2026 20:43
@gdeest

gdeest commented Feb 23, 2026

Copy link
Copy Markdown
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 ?

@ErinvanderVeen

Copy link
Copy Markdown
Collaborator Author

Yes it is!

@ErinvanderVeen
ErinvanderVeen force-pushed the erin/nix-ci-2 branch 2 times, most recently from 2cc1a3e to 8b80dde Compare February 23, 2026 14:26
@vreuter

vreuter commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

Looks very good!

@ErinvanderVeen
ErinvanderVeen merged commit 0139fb6 into main Feb 23, 2026
3 checks passed
@ErinvanderVeen
ErinvanderVeen deleted the erin/nix-ci-2 branch February 23, 2026 14:41
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.

3 participants