Commit 00e7a4ab authored by Ben Gamari's avatar Ben Gamari 🐢
Browse files

gitlab-ci: Fix it

parent 5d6e43d2
Pipeline #45377 failed with stages
in 20 seconds
......@@ -7,13 +7,13 @@ with baseNixpkgs;
let
ghc-nix = import ./.;
drvs =
lib.attrNames ghc-nix.ghcs ++
lib.attrNames ghc-nix.ghcs_hadrian ++
[ ghc-nix.cabal-install ];
map (v: {drvName="ghcs.\\\"${v}\\\""; jobName="ghc-${v}";}) (lib.attrNames ghc-nix.ghcs) ++
map (v: {drvName="ghcs_hadrian.\\\"${v}\\\""; jobName="ghc-hadrian-${v}";}) (lib.attrNames ghc-nix.ghcs_hadrian) ++
[ {drvName="cabal-install"; jobName="cabal-install";} ];
toJob = drvName:
toJob = {drvName, jobName}:
''
build-${drvName}:
build-${jobName}:
extends: .build
variables:
DRV_NAME: "${drvName}"
......@@ -29,8 +29,10 @@ let
tags:
- x86_64-linux
script:
- nix-env -iA nixpkgs.git
- nix-env -iA cachix -f https://cachix.org/api/v1/install
- cachix use ghc
- echo "Building $DRV_NAME..."
- nix-build . --option cores $CPUS -A $DRV_NAME | cachix push ghc
'' + lib.concatMapStringsSep "\n" toJob drvs;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment