git.iko.soy/typeable/pandoc
on master help sign in
circleci - explicitly specify ghc version for cabal builds.
d086a19John MacFarlane
.circleci/config.yml+4−4
@@ -57,16 +57,16 @@ commands:
57 cd ${TMPDIR}
57 cd ${TMPDIR}
58 tar xvzf *.tar.gz
58 tar xvzf *.tar.gz
59 cd *
59 cd *
60− cabal v2-build -j2 --dependencies-only --enable-tests --ghc-options="${GHC_OPTS}" all
60+ cabal v2-build -w ghc-<< parameters.ghcversion >> -j2 --dependencies-only --enable-tests --ghc-options="${GHC_OPTS}" all
61− cabal v2-build -j2 --enable-tests --ghc-options="${GHC_OPTS}" all 2>build.log
61+ cabal v2-build -w ghc-<< parameters.ghcversion >> -j2 --enable-tests --ghc-options="${GHC_OPTS}" all 2>build.log
62 cat build.log
62 cat build.log
63 # fail if we had warnings in local build
63 # fail if we had warnings in local build
64 # this is to work around the fact that cabal v2 doesn't allow
64 # this is to work around the fact that cabal v2 doesn't allow
65 # us to use -Werror for just local build:
65 # us to use -Werror for just local build:
66 # https://github.com/haskell/cabal/issues/4247
66 # https://github.com/haskell/cabal/issues/4247
67 ! grep -q "warning:" build.log
67 ! grep -q "warning:" build.log
68− cabal v2-test --ghc-options="${GHC_OPTS}" 2>build.log
68+ cabal v2-test -w ghc-<< parameters.ghcversion >> --ghc-options="${GHC_OPTS}" 2>build.log
69− cabal v2-haddock --ghc-options="${GHC_OPTS}"
69+ cabal v2-haddock -w ghc-<< parameters.ghcversion >> --ghc-options="${GHC_OPTS}"
70 cabal check
70 cabal check
71 - *save
71 - *save
72
72