mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(ci): cache deploy-rs
This commit is contained in:
parent
0d4184d73a
commit
febf43b1d0
3 changed files with 61 additions and 8 deletions
13
ci/nodes.nix
13
ci/nodes.nix
|
|
@ -25,13 +25,20 @@ with lib; {
|
|||
|
||||
jobs = let
|
||||
enabledSystems = filterAttrs (_: system: system.config.ci.enable) channels.nixfiles.lib.systems;
|
||||
in
|
||||
mapAttrs' (name: system: nameValuePair "${name}" {
|
||||
mkSystemJob = name: system: nameValuePair "${name}" {
|
||||
tasks.system = {
|
||||
inputs = channels.nixfiles.nixosConfigurations.${name}.config.system.build.toplevel;
|
||||
warn = system.config.ci.allowFailure;
|
||||
};
|
||||
}) enabledSystems;
|
||||
};
|
||||
systemJobs = mapAttrs' mkSystemJob enabledSystems;
|
||||
in {
|
||||
deploy-rs = {
|
||||
tasks.binary = {
|
||||
inputs = channels.nixfiles.packages.x86_64-linux.deploy-rs;
|
||||
};
|
||||
};
|
||||
} // systemJobs;
|
||||
|
||||
ci.gh-actions.checkoutOptions.submodules = false;
|
||||
cache.cachix.arc = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue