mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(system): ci options
This commit is contained in:
parent
a1e7a31caa
commit
743593452d
9 changed files with 139 additions and 28 deletions
|
|
@ -20,6 +20,15 @@
|
|||
NF_NIX_WHITELIST_DIRS=(${string.concatMapSep " " string.escapeShellArg fmt.nix.whitelistDirs})
|
||||
NF_NIX_WHITELIST_FILES=(${string.concatMapSep " " string.escapeShellArg fmt.nix.whitelist})
|
||||
'';
|
||||
exportsSystems = let
|
||||
inherit (inputs.self.lib) systems;
|
||||
nixosSystems = set.filter (_: system: system.config.ci.enable) systems;
|
||||
warnSystems = set.filter (_: system: system.config.ci.allowFailure) nixosSystems;
|
||||
toSystems = systems: string.concatMapSep " " string.escapeShellArg (set.keys systems);
|
||||
in ''
|
||||
NF_NIX_SYSTEMS=(${toSystems nixosSystems})
|
||||
NF_NIX_SYSTEMS_WARN=(${toSystems warnSystems})
|
||||
'';
|
||||
output = {
|
||||
inherit
|
||||
(pkgs.buildPackages)
|
||||
|
|
@ -72,7 +81,7 @@
|
|||
'';
|
||||
nf-actions-test = pkgs.writeShellScriptBin "nf-actions-test" ''
|
||||
${exports}
|
||||
NF_NIX_SYSTEMS=(${string.concatMapSep " " string.escapeShellArg ci.nixosSystems})
|
||||
${exportsSystems}
|
||||
source ${../ci/actions-test.sh}
|
||||
'';
|
||||
nf-update = pkgs.writeShellScriptBin "nf-update" ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue