Archived
Check NixOS configurations / eval-hosts (pull_request) Canceled after 0s
CI was running a full eval of every host + package on every push/PR, which was slow enough to routinely time out the Gitea runner. Default mode now diffs against a base ref and scopes nixpkgs-fmt/statix/eval to the files that changed and the hosts/packages they can affect; a change to flake.nix/flake.lock/variables.nix/modules/common/* (or any other modules/*.nix outside platforms//build-types, whose blast radius isn't inferable from the path) falls back to evaluating everything. The old full sweep moves behind --full-check, which CI never passes; --dry-run adds build-planning on top of whichever scope is active. Also trims codex-setup.sh's redundant full host eval loop -- that's what codex-maintenance.sh is for; setup should just install tooling.
30 lines
846 B
YAML
30 lines
846 B
YAML
name: Check NixOS configurations
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
eval-hosts:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install Nix
|
|
uses: DeterminateSystems/nix-installer-action@v19
|
|
|
|
# Scoped to files changed since the PR base / previous push -- see
|
|
# scripts/codex-maintenance.sh. CI never passes --full-check: that
|
|
# full sweep is for local/manual use, since it's slow enough to time
|
|
# out this runner.
|
|
- name: Run maintenance checks (secrets, fmt, lint, eval -- changed files only)
|
|
env:
|
|
MAINT_BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }}
|
|
run: bash scripts/codex-maintenance.sh
|