diff options
| author | seth <[email protected]> | 2023-08-19 21:18:10 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-08-19 22:35:45 -0400 |
| commit | d0e95ba2c00f6a87087823338543b4c9cba3f10b (patch) | |
| tree | 1ccf225f758b36781946808d693ef1b2118e73e6 /ci.nix | |
| parent | 7c73c16e76695947e8f0098fea8be33880113fac (diff) | |
start using flake-parts & hercules-ci
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; + }; + }; +} |
