ci: try not to build the kernel over and over again

This commit is contained in:
Cassie Cheung 2024-12-09 17:04:13 +08:00
parent 353da03f53
commit 027d204c1f
No known key found for this signature in database
2 changed files with 7 additions and 1 deletions

View file

@ -48,7 +48,7 @@ jobs:
GC_DONT_GC: 1
run: |
for output in $(nix flake show --json | nix run nixpkgs#jq -- -r 'keys[]'); do
nix build .#$output
nix build .#$output --accept-flake-config
if [ $(du -B1M result/iso/*.iso | cut -f1) -gt 2000 ]; then
split -d result/iso/*.iso -b 2000M nixos-$output.iso.part-
else