Skip to content

ci: add Nix build workflow to catch flake breakage on PR#3264

Merged
houko merged 1 commit into
mainfrom
ci/nix-build
Apr 26, 2026
Merged

ci: add Nix build workflow to catch flake breakage on PR#3264
houko merged 1 commit into
mainfrom
ci/nix-build

Conversation

@houko
Copy link
Copy Markdown
Contributor

@houko houko commented Apr 26, 2026

Summary

Adds a dedicated CI workflow that runs nix build .#librefang-cli and nix build .#librefang-desktop so flake breakage is caught on PR review instead of after merge.

Why

The Nix build path has broken at least six times — #2937, #2974, #3052, #3156, #3197, #3263 — and every one shipped to main because no CI job exercises flake.nix. NixOS users have to wait for a follow-up fix PR each time.

Design

Not making this a required check yet — let it bake on a few PRs first to confirm the cache behaviour and runtime are sane.

Test plan

  • Workflow file parses (GitHub will reject malformed YAML on push)
  • First run on this PR completes both matrix legs green
  • Confirm cache hit on a no-op rerun is materially faster than the cold run

Catches NixOS build breakage on flake.nix or workspace changes before they
reach main. Past incidents (#2937, #2974, #3052, #3156, #3197, #3263) all
slipped through because regular CI doesn't exercise the Nix path.

Triggers only on flake.nix / flake.lock / Cargo.lock / per-crate Cargo.toml
changes so Rust-only PRs aren't slowed down. Matrix builds both packages
in parallel with fail-fast disabled so each break is visible independently.
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions github-actions Bot added ready-for-review PR is ready for maintainer review no-rust-required This task does not require Rust knowledge size/M 50-249 lines changed area/ci CI/CD and build tooling and removed no-rust-required This task does not require Rust knowledge ready-for-review PR is ready for maintainer review size/M 50-249 lines changed labels Apr 26, 2026
@houko houko merged commit fa8e9a3 into main Apr 26, 2026
24 checks passed
@houko houko deleted the ci/nix-build branch April 26, 2026 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci CI/CD and build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant