From d0e95ba2c00f6a87087823338543b4c9cba3f10b Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 19 Aug 2023 21:18:10 -0400 Subject: start using flake-parts & hercules-ci --- ci.nix | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 ci.nix (limited to 'ci.nix') diff --git a/ci.nix b/ci.nix new file mode 100644 index 0000000..51c72dd --- /dev/null +++ b/ci.nix @@ -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; + }; + }; +} -- cgit v1.2.3