This repository has no description
0

Configure Feed

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

tools.ci-farm: push the ci-farm closure to niks3

+14 -1
+4
.github/workflows/farm.yml
··· 49 49 # a remembered miss (default: 1 h) fails the build instead. 50 50 narinfo-cache-negative-ttl = 0 51 51 - run: nix build -L .#ci-farm -o ci-farm 52 + # so the next run substitutes it instead of compiling it on every runner 53 + - env: 54 + FARM_KEY: ${{ secrets.FARM_KEY }} 55 + run: ./ci-farm/bin/ci-farm push ./ci-farm 52 56 - name: build ${{ env.MACHINES || 'all machines' }} 53 57 env: 54 58 FARM_KEY: ${{ secrets.FARM_KEY }}
+9 -1
tools/ci-farm/ci-farm.sh
··· 198 198 wait "$pid" || true 199 199 } 200 200 201 - cmd=${1:?usage: ci-farm farm MACHINE... | ci-farm worker INDEX} 201 + # ci-farm push PATH...: pushes the closures of PATH... to niks3, e.g. the 202 + # farm's own closure, which no other cache has. 203 + push() { 204 + niks3 push --server-url "$niks3_url" --auth-token-path "$state/niks3-token" \ 205 + --ignore-upstream-key cache.nixos.org-1 "$@" 206 + } 207 + 208 + cmd=${1:?usage: ci-farm farm MACHINE... | ci-farm worker INDEX | ci-farm push PATH...} 202 209 shift 203 210 case $cmd in 204 211 farm) farm "$@" ;; 205 212 worker) worker "$@" ;; 213 + push) push "$@" ;; 206 214 *) 207 215 echo "ci-farm: unknown command $cmd" >&2 208 216 exit 1
+1
tools/ci-farm/flake-module.nix
··· 42 42 # ci-farm farm MACHINE... scheduler + builder + balancer, builds the 43 43 # toplevels of MACHINE... through the farm 44 44 # ci-farm worker INDEX builder, until the farm job has finished 45 + # ci-farm push PATH... pushes the closures of PATH... to niks3 45 46 # 46 47 # Runs in .github/workflows/farm.yml. See ci-farm.sh for the layout. 47 48 packages = lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {