From ee40c469bf4c18624802fa2e5ac02eb37c08f0a9 Mon Sep 17 00:00:00 2001 From: John Ogle Date: Sat, 10 Jan 2026 12:55:57 -0800 Subject: [PATCH] feat(ci): Add Forgejo Actions CI workflow Set up continuous integration for nixos-configs: - Validate flake syntax with `nix flake check --no-build` - Display flake metadata and outputs for visibility - Build critical NixOS configurations in parallel matrix - Configurations tested: john-endesktop, zix790prors, nix-book, boxy Implements bead: nixos-configs-2hq --- .forgejo/workflows/ci.yaml | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .forgejo/workflows/ci.yaml diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml new file mode 100644 index 0000000..fdb9641 --- /dev/null +++ b/.forgejo/workflows/ci.yaml @@ -0,0 +1,47 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + flake-check: + runs-on: nix + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Check flake syntax + run: nix flake check --no-build + + - name: Show flake metadata + run: nix flake metadata + + - name: Show flake outputs + run: nix flake show + + build-configs: + runs-on: nix + needs: flake-check + strategy: + fail-fast: false + matrix: + config: + # Critical server configurations + - john-endesktop + # Desktop configurations + - zix790prors + - nix-book + # Media center + - boxy + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Build ${{ matrix.config }} + run: | + nix build .#nixosConfigurations.${{ matrix.config }}.config.system.build.toplevel \ + --no-link \ + --print-build-logs -- 2.49.1