Skip to content
Snippets Groups Projects

Parallelize Cabal builds

Closed Ben Gamari requested to merge parallel-builds into master
Files
2
@@ -52,7 +52,7 @@ ENV CABAL_VERSION 3.0.0.0
#WORKDIR /Cabal
#RUN git checkout cabal-install-v$CABAL_VERSION
#WORKDIR /Cabal/cabal-install
#RUN EXTRA_CONFIGURE_OPTS=--disable-optimization ./bootstrap.sh --global --no-doc
RUN EXTRA_CONFIGURE_OPTS="--disable-optimization --ghc-options=-j$CPUS" ./bootstrap.sh --global --no-doc
#RUN ls /Cabal/cabal-install/dist/build
RUN curl http://home.smart-cactus.org/~ben/ghc/cabal-install-$CABAL_VERSION-aarch64-debian9-linux.tar.xz | tar -Jx && \
mv cabal /usr/local/bin/cabal
Loading