This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

.github.ci: take nix-eval-jobs from the flake's nixpkgs

`nix run nixpkgs#nix-eval-jobs` resolves nixpkgs through the global
registry (nixpkgs-unstable): a second nixpkgs, fetched as a GitHub
tarball and unpacked into the git cache on every eval job, next to the
locked one the flake evaluation substitutes from cache.nixos.org
anyway. A cold nixpkgs tarball fetch took 18.6 s locally; on the
runner it hides inside the 99 s matrix step of the benchmark run
(PR 68), which prints no progress. With --inputs-from . the eval job
builds nix-eval-jobs from the locked nixpkgs (substituted from
cache.nixos.org) in the tools step and hands the binary to the matrix
step.

The worker count stays at 4: locally nix-eval-jobs over ciToplevels
took 101 s with 4 workers (1.8 cores busy), 72-83 s with 8 and 137 s
with 6 x 2 GiB, too noisy on a shared 16-core host to say anything
about the 4-vCPU runner.

author
Hermes
committer
lassulus
date (Oct 17, 2026, 11:40 AM CEST) commit a6ac39e6 parent 65c2c7cf
+9 -4
+9 -4
.github/workflows/ci.yml
··· 106 106 upstream-cache-key-names: cache.nixos.org-1 cache.lassul.us-1 107 107 filter-drv-closures: true 108 108 # the niks3 client of all jobs and the lazy store of the machine jobs, 109 - # the others substitute them 109 + # the others substitute them; nix-eval-jobs from the flake's nixpkgs, 110 + # which the flake evaluation fetches anyway 110 111 - id: tools 111 112 run: | 112 113 niks3=$(nix build --no-link --print-out-paths .#niks3) 113 114 lazy=$(nix build --no-link --print-out-paths .#lazy-store) 114 - echo "niks3=$niks3" >> "$GITHUB_OUTPUT" 115 - echo "lazy-store=$lazy" >> "$GITHUB_OUTPUT" 115 + nej=$(nix build --no-link --print-out-paths --inputs-from . nixpkgs#nix-eval-jobs) 116 + { 117 + echo "niks3=$niks3" 118 + echo "lazy-store=$lazy" 119 + echo "nix-eval-jobs=$nej/bin/nix-eval-jobs" 120 + } >> "$GITHUB_OUTPUT" 116 121 PATH=$niks3/bin:$PATH .github/niks3-push.sh "$niks3" "$lazy" 117 122 - id: matrix 118 123 uses: Mic92/hestia/matrix@v3 119 124 with: 120 125 flake: ".#ciToplevels" 121 - nix-eval-jobs: "nix run nixpkgs#nix-eval-jobs -- --workers 4 --max-memory-size 3072" 126 + nix-eval-jobs: "${{ steps.tools.outputs.nix-eval-jobs }} --workers 4 --max-memory-size 3072" 122 127 - env: 123 128 MATRIX: ${{ steps.matrix.outputs.matrix }} 124 129 run: |