Add Nix flake CI: eval check + hash verification
Build and Test / Build and Test (push) Successful in 2m6s
Nix Flake Check / Nix Flake Check (push) Successful in 1m32s

Checks that the flake evaluates, and verifies the source, mixFodDeps,
and yarnOfflineCache hashes are correct. Does not do a full nix build
(which would be too slow for CI) — the hash checks catch the most
common issues before merging to config-nixos.
This commit is contained in:
2026-07-04 10:58:26 +00:00
parent 254b712747
commit 7ec48045ce
+38
View File
@@ -0,0 +1,38 @@
name: Nix Flake Check
on:
push:
branches:
- master
- feature/*
pull_request:
branches:
- master
workflow_dispatch:
jobs:
flake-check:
name: Nix Flake Check
runs-on: ubuntu-latest
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Check flake evaluates
run: nix flake check --no-build
- name: Verify source hash
run: nix build .#pinchflat.src --no-link --print-out-paths
- name: Verify mix deps hash
run: nix build .#pinchflat.mixFodDeps --no-link --print-out-paths
- name: Verify yarn cache hash
run: nix build .#pinchflat.yarnOfflineCache --no-link --print-out-paths