Skip to content

noni

noni #375

Workflow file for this run

name: "CI"
on:
push:
branches:
- main
- update_flake_lock_action
- nixos
pull_request:
jobs:
nix:
runs-on: ${{ matrix.system }}
strategy:
matrix:
system: [aarch64-darwin, x86_64-darwin, x86_64-linux]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: om show
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
# https://github.com/juspay/omnix/issues/282
- name: NixOS test
if: matrix.system == 'x86_64-linux'
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"}'
cd /tmp/nixconfig
nix build /tmp/nixconfig#nixosConfigurations.example.config.system.build.toplevel