diff options
| author | seth <[email protected]> | 2023-05-29 11:51:09 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-05-29 11:54:03 -0400 |
| commit | 87e220c708bf0badc8ef663b236a2139d6a19bad (patch) | |
| tree | b903875061f2ca6263a34411812527e3ebae50f9 | |
| parent | 4c33035fbbc338592baa5be3781b88d7291f80fe (diff) | |
chore: move back to hercules-ci
| -rw-r--r-- | .hydra.json | 14 | ||||
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | flake.nix | 16 | ||||
| -rw-r--r-- | lib/ci.nix | 4 |
4 files changed, 14 insertions, 22 deletions
diff --git a/.hydra.json b/.hydra.json deleted file mode 100644 index 201bd13..0000000 --- a/.hydra.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "main": { - "enabled": 1, - "type": 1, - "hidden": false, - "description": "build flake", - "checkinterval": 600, - "schedulingshares": 100, - "enableemail": false, - "emailoverride": "", - "keepnr": 2, - "flake": "github:getchoo/nix-exprs/main" - } -} @@ -1,6 +1,6 @@ # nix-exprs -[](https://hydra.mydadleft.me/jobset/nix-exprs/main#tabs-jobs) +[](https://hercules-ci.com/github/getchoo/nix-exprs) ## how to use @@ -53,17 +53,23 @@ formatter = forEachSystem (pkgs: pkgs.alejandra); - hydraJobs = let - supportedSystems = [ + herculesCI = let + ciSystems = [ "x86_64-linux" "aarch64-linux" ]; lib = self.lib {inherit (self) inputs;}; - in - with lib.ci supportedSystems; { - packages = mkCompatiblePkgs self.packages; + inherit (lib.ci ciSystems) mkCompatiblePkgs; + in { + inherit ciSystems; + + onPush.default = { + outputs = { + packages = mkCompatiblePkgs self.packages; + }; }; + }; packages = forEachSystem ( pkgs: let @@ -43,7 +43,7 @@ in rec { # mkComaptible, but maps nixosConfigurations # to their toplevel build attribute so they can - # be picked up by hydra + # be picked up by ci mkCompatibleCfg = configs: filterAttrs (_: config: check config.system) (mapAttrs (_: v: v.config.system.build.toplevel) configs); @@ -60,7 +60,7 @@ in rec { # mkCompatible, but maps homeConfigurations # to their activationPackage so they can be - # picked up by hydra + # picked up by ci mkCompatibleHM = configs: mkCompatible (mapAttrs (_: |
