diff options
Diffstat (limited to 'ci.nix')
| -rw-r--r-- | ci.nix | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -0,0 +1,35 @@ +{ + inputs, + self, + ... +}: { + imports = [ + inputs.effects.flakeModule + ]; + + hercules-ci.flake-update = { + enable = true; + autoMergeMethod = "rebase"; + + flakes = { + ".".commitSummary = "flake: update inputs"; + }; + + when = { + minute = 0; + hour = [0]; + dayOfWeek = ["Sun"]; + }; + }; + + herculesCI = {lib, ...}: let + ciSystems = ["x86_64-linux" "aarch64-linux"]; + findCompatible = lib.filterAttrs (s: _: builtins.elem s ciSystems); + in { + inherit ciSystems; + + onPush.default.outputs = lib.mkForce { + packages = findCompatible self.packages; + }; + }; +} |
