From e4b032ba5113664f0b8b23d956e59ce8e0bc349d Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sun, 27 Jul 2025 22:48:14 -0500 Subject: [PATCH] ci: re-enable home manager install and uninstall tests on darwin Signed-off-by: Austin Horstman --- .github/workflows/test.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e60545b8e..a34bc525d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -56,10 +56,6 @@ jobs: 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' with: nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/${{ steps.get-nixpkgs.outputs.rev }}.tar.gz - extra_nix_config: | - experimental-features = nix-command flakes - max-jobs = auto - cores = 0 - name: Build docs if: github.event_name == 'schedule' || needs.changes.outputs.docs == 'true' run: nix build --show-trace .#docs-jsonModuleMaintainers @@ -67,16 +63,14 @@ jobs: if: github.event_name == 'schedule' || needs.changes.outputs.format == 'true' run: nix fmt -- --ci - name: Test init --switch with locked inputs - # FIXME: nix broken on darwin on unstable - if: matrix.os != 'macos-latest' && (github.event_name == 'schedule' || needs.changes.outputs.hm == 'true') + if: github.event_name == 'schedule' || needs.changes.outputs.hm == 'true' run: | # Copy lock file to home directory for consistent testing mkdir -p ~/.config/home-manager cp flake.lock ~/.config/home-manager/ nix run .#home-manager -- init --switch --override-input home-manager . - name: Uninstall - # FIXME: nix broken on darwin on unstable - if: matrix.os != 'macos-latest' && (github.event_name == 'schedule' || needs.changes.outputs.hm == 'true') + if: github.event_name == 'schedule' || needs.changes.outputs.hm == 'true' run: yes | nix run . -- uninstall - name: Generate Job Summary if: github.event_name == 'pull_request'