Skip to content

add claude code workflow #51

add claude code workflow

add claude code workflow #51

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- uses: DeterminateSystems/nix-installer-action@v20
- uses: DeterminateSystems/magic-nix-cache-action@v13
- name: Check formatting
run: nix develop -c treefmt --ci
- name: Deadnix (fail on unused Nix)
run: nix run nixpkgs#deadnix -- --fail
flake-check:
runs-on: ubuntu-24.04
needs: lint
steps:
- uses: actions/checkout@v5
- uses: DeterminateSystems/nix-installer-action@v20
- uses: DeterminateSystems/magic-nix-cache-action@v13
- name: Show flake outputs
run: nix flake show
- name: Flake checks (no system builds)
run: nix flake check --keep-going --print-build-logs
eval-hosts:
runs-on: macos-15
needs: flake-check
strategy:
fail-fast: false
matrix:
host: [higgins, benson, spaceblack, dunston]
steps:
- uses: actions/checkout@v5
- uses: DeterminateSystems/nix-installer-action@v20
- uses: DeterminateSystems/magic-nix-cache-action@v13
- name: Evaluate toplevel drv for ${{ matrix.host }}
run: nix eval --raw .#darwinConfigurations.${{ matrix.host }}.config.system.build.toplevel.drvPath
build-hosts:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: macos-15
needs: eval-hosts
strategy:
fail-fast: false
matrix:
host: [higgins, benson, spaceblack, dunston]
steps:
- uses: actions/checkout@v5
- uses: DeterminateSystems/nix-installer-action@v20
- uses: DeterminateSystems/magic-nix-cache-action@v13
- name: Build toplevel for ${{ matrix.host }}
run: nix build --keep-going --print-build-logs .#darwinConfigurations.${{ matrix.host }}.config.system.build.toplevel