Skip to content

Commit d421945

Browse files
committed
build(nix): Try to limit MacOS jobs
1 parent d931022 commit d421945

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

flake.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,12 @@
159159
compiler-nix-name = lib.mkDefault "ghc96";
160160
flake.variants =
161161
let
162-
compilers = [ "ghc98" "ghc910" "ghc912" ];
162+
extraCompilers =
163+
# To avoid excessive jobs, only build for default compiler on macOS
164+
lib.optionals (system == "x86_64-linux")
165+
[ "ghc910" "ghc912" ];
163166
in
164-
lib.genAttrs compilers (c: { compiler-nix-name = c; });
167+
lib.genAttrs extraCompilers (c: { compiler-nix-name = c; });
165168

166169
# cardano-cli is needed when building the docker image
167170
cabalProjectLocal = ''

0 commit comments

Comments
 (0)