Skip to content

Commit

Permalink
darwi
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 4, 2024
1 parent 4363183 commit b611512
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit b611512

Please sign in to comment.