mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
ci: Fixes to jobs (they have a task now)
This commit is contained in:
parent
eff519419e
commit
ecfafc8c51
1 changed files with 5 additions and 13 deletions
18
ci.nix
18
ci.nix
|
|
@ -1,22 +1,14 @@
|
|||
{ lib, channels, ... }: with lib; {
|
||||
{ lib, channels, ... }: with lib; let
|
||||
nixfiles = import ./.;
|
||||
in {
|
||||
name = "nixfiles";
|
||||
ci.gh-actions.enable = true;
|
||||
ci.gh-actions.export = true;
|
||||
|
||||
jobs = let hostnames = [ "samhain" "yule" "athame" ];
|
||||
in mapAttrs' (k: nameValuePair "host-${k}") (genAttrs hostnames (host: {
|
||||
tasks = {
|
||||
inputs = with channels.cipkgs; ci.command {
|
||||
name = "build-${host}";
|
||||
displayName = "build hosts/${host}";
|
||||
nativeBuildInputs = [ nix ];
|
||||
command = ''
|
||||
nix build -Lf . hosts.${host}.config.system.build.toplevel --show-trace --no-link
|
||||
nix-collect-garbage
|
||||
'';
|
||||
};
|
||||
};
|
||||
}));
|
||||
tasks.${host}.inputs = nixfiles.hosts.${host}.config.system.build.toplevel;
|
||||
}));
|
||||
|
||||
ci.gh-actions.checkoutOptions.submodules = false;
|
||||
cache.cachix.arc = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue