on master help sign in
Use build memory limiting flag in the CIs
commitca60ffaa88f9829c627927216eceb99d56bee164 authorAdithya Kumar <adithya@composewell.com> dateTue 23 Mar 2021, 01:01 (6 years ago) parent27ccdf4
2 files changed+3−2
.circleci/config.yml+2−1 .github/workflows/haskell.yml+1−1
.circleci/config.yml+2−1
@@ -40,6 +40,7 @@ env: &env
4040 CABAL_CHECK_RELAX: "y"
4141 CABAL_NO_SANDBOX: "y"
4242 CABAL_HACKAGE_MIRROR: "hackage.haskell.org:http://hackage.fpcomplete.com"
43+ CABAL_BUILD_OPTIONS: "--flag limit-build-mem"
4344
4445 # ------------------------------------------------------------------------
4546 # Where to find the required tools
@@ -185,7 +186,7 @@ jobs:
185186 environment:
186187 BUILD: "cabal-v2"
187188 GHCVER: "8.4.4"
188− CABAL_BUILD_OPTIONS: "--flag debug"
189+ CABAL_BUILD_OPTIONS: "--flag debug --flag limit-build-mem"
189190 command: |
190191 apt-get install -y ghc-8.4.4
191192 apt-get install -y cabal-install-3.2
.github/workflows/haskell.yml+1−1
@@ -28,7 +28,7 @@ jobs:
2828 BUILD: ${{ matrix.build }}
2929 GHCVER: ${{ matrix.ghc_version }}
3030 RESOLVER: ${{ matrix.resolver }}
31− CABAL_BUILD_OPTIONS: ${{ matrix.cabal_build_options }}
31+ CABAL_BUILD_OPTIONS: ${{ matrix.cabal_build_options }} --flag limit-build-mem
3232 CABAL_BUILD_TARGETS: ${{ matrix.cabal_build_targets }}
3333 CABAL_PROJECT: ${{ matrix.cabal_project }}
3434 STACK_BUILD_OPTIONS: ${{ matrix.stack_build_options }}