From 6f59831b23d03bbf4fbd13ad167ae25da294cc14 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sat, 25 Apr 2026 16:12:10 -0500 Subject: [PATCH] ci: only parse/format on linux Will not differ between platforms, use the faster ci runner for these checks Also fix missing parse condition in install-nix-action --- .github/workflows/test.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b43e98422..59914e7d6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -60,7 +60,7 @@ jobs: run: | echo "rev=$(jq -r '.nodes.nixpkgs.locked.rev' flake.lock)" >> "$GITHUB_OUTPUT" - uses: cachix/install-nix-action@v31 - if: github.event_name == 'schedule' || needs.changes.outputs.docs == 'true' || needs.changes.outputs.tests == 'true' || needs.changes.outputs.hm == 'true' || needs.changes.outputs.format == 'true' + if: github.event_name == 'schedule' || needs.changes.outputs.docs == 'true' || needs.changes.outputs.tests == 'true' || needs.changes.outputs.hm == 'true' || needs.changes.outputs.parse == 'true' || needs.changes.outputs.format == 'true' with: nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/${{ steps.get-nixpkgs.outputs.rev }}.tar.gz extra_nix_config: | @@ -69,10 +69,14 @@ jobs: if: github.event_name == 'schedule' || needs.changes.outputs.docs == 'true' run: nix build --show-trace .#docs-jsonModuleMaintainers - name: Parse Nix files with nix and Lix - if: github.event_name == 'schedule' || needs.changes.outputs.parse == 'true' + if: >- + matrix.os == 'ubuntu-latest' && + (github.event_name == 'schedule' || needs.changes.outputs.parse == 'true') run: nix build --show-trace --keep-going .#ci-parse .#ci-parse-lix - name: Format Check - if: github.event_name == 'schedule' || needs.changes.outputs.format == 'true' + if: >- + matrix.os == 'ubuntu-latest' && + (github.event_name == 'schedule' || needs.changes.outputs.format == 'true') run: nix fmt -- --ci - name: Test init --switch with locked inputs if: github.event_name == 'schedule' || needs.changes.outputs.hm == 'true'