From 1ffc8d9a2f863f17666d2e955b33f8b8a7ffc54d Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 29 Jun 2026 07:31:43 +0000 Subject: [PATCH] ci: only run nix build/fmt when nix files change Gate the CI workflow with a path filter so the nixfmt check and the (expensive) macOS darwin build only run when nix-relevant files change. PRs that touch only non-nix files (nvim lua, wezterm, README, etc.) no longer trigger wasteful build/fmt runs. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01WhHQrJp4TeYPZ2buJGSKHg --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 004d5f5..922af3b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,10 @@ name: CI on: pull_request: branches: [main] + paths: + - "**/*.nix" + - "flake.lock" + - ".github/workflows/ci.yml" concurrency: group: ci-${{ github.ref }}