From b61151211452801c1f74800d4fd3f26b6189c22e Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Fri, 4 Oct 2024 17:08:36 -0400 Subject: [PATCH] darwi --- .github/workflows/ci.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4bb9da0..387c79f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,9 +19,6 @@ jobs: run: om show . - name: om ci run: om ci --extra-access-tokens "github.com=${{ secrets.GITHUB_TOKEN }}" run --systems "${{ matrix.system }}" - - name: activate-test - if: matrix.system == 'x86_64-linux' - run: nix run .#test-home-manager-config # Make sure that the templates at least build after initialized # TODO: Ideally, we want to let `omnix` run these tests @@ -35,3 +32,18 @@ jobs: --params '{"hostname": "example", "username": "srid", "git-name": "Srid", "git-email": "srid@srid.ca"}' set -x nix build /tmp/nixconfig#nixosConfigurations.example.config.system.build.toplevel + + - name: nix-darwin test + if: matrix.system == 'aarch64-darwin' || matrix.system == 'x86_64-darwin' + run: | + nix --accept-flake-config run github:juspay/omnix -- \ + init .#nixos -o /tmp/nixconfig \ + --non-interactive \ + --params '{"hostname": "example", "username": "srid", "git-name": "Srid", "git-email": "srid@srid.ca"}' + set -x + nix build /tmp/nixconfig#darwinConfigurations.example.config.system.build.toplevel + + # TODO: Use `om init` like above + - name: activate-test + if: matrix.system == 'x86_64-linux' + run: nix run .#test-home-manager-config