Commit f82bb0bc authored by Ben Gamari's avatar Ben Gamari 🐢

gitlab-ci: Use cabal's build parallelism

parent f2b9b3f8
......@@ -68,8 +68,9 @@ build:
- GHC=`pwd`/ghc/bin/ghc
- rm -Rf $HOME/.cabal/pacakages/local tmp; mkdir -p tmp; cd tmp
- |
EXTRA_OPTS="--cabal-option=-j$CPUS" # Use cabal's build parallelism
if [ -n "$EXTRA_HC_OPTS" ]; then
EXTRA_OPTS="--ghc-option=\"$EXTRA_HC_OPTS\""
EXTRA_OPTS="$EXTRA_OPTS --ghc-option=\"$EXTRA_HC_OPTS\""
fi
nix eval --raw -f ../ci cabalDepsSrc > deps.cabal.project
......
Markdown is supported
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