Skip to content

Commit

Permalink
ci: try not to build the kernel over and over again
Browse files Browse the repository at this point in the history
  • Loading branch information
soopyc committed Dec 9, 2024
1 parent 309ca42 commit 3ddda41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
nixos-hardware.url = "github:NixOS/nixos-hardware";
};

nixConfig = {
extra-trusted-substituters = [ "https://cache.soopy.moe" ];
extra-substituters = [ "https://cache.soopy.moe" ];
extra-trusted-public-keys = [ "cache.soopy.moe-1:0RZVsQeR+GOh0VQI9rvnHz55nVXkFardDqfm4+afjPo=" ];
};

outputs = { self, nixpkgs, nixos-hardware }:
let
system = "x86_64-linux";
Expand Down

0 comments on commit 3ddda41

Please sign in to comment.