on master help sign in
Use build memory limiting flag in the CIs
ca60ffaAdithya Kumar
.circleci/config.yml+2−1
@@ -40,6 +40,7 @@ env: &env
40 CABAL_CHECK_RELAX: "y"
40 CABAL_CHECK_RELAX: "y"
41 CABAL_NO_SANDBOX: "y"
41 CABAL_NO_SANDBOX: "y"
42 CABAL_HACKAGE_MIRROR: "hackage.haskell.org:http://hackage.fpcomplete.com"
42 CABAL_HACKAGE_MIRROR: "hackage.haskell.org:http://hackage.fpcomplete.com"
43+ CABAL_BUILD_OPTIONS: "--flag limit-build-mem"
43
44
44 # ------------------------------------------------------------------------
45 # ------------------------------------------------------------------------
45 # Where to find the required tools
46 # Where to find the required tools
@@ -185,7 +186,7 @@ jobs:
185 environment:
186 environment:
186 BUILD: "cabal-v2"
187 BUILD: "cabal-v2"
187 GHCVER: "8.4.4"
188 GHCVER: "8.4.4"
188− CABAL_BUILD_OPTIONS: "--flag debug"
189+ CABAL_BUILD_OPTIONS: "--flag debug --flag limit-build-mem"
189 command: |
190 command: |
190 apt-get install -y ghc-8.4.4
191 apt-get install -y ghc-8.4.4
191 apt-get install -y cabal-install-3.2
192 apt-get install -y cabal-install-3.2
.github/workflows/haskell.yml+1−1
@@ -28,7 +28,7 @@ jobs:
28 BUILD: ${{ matrix.build }}
28 BUILD: ${{ matrix.build }}
29 GHCVER: ${{ matrix.ghc_version }}
29 GHCVER: ${{ matrix.ghc_version }}
30 RESOLVER: ${{ matrix.resolver }}
30 RESOLVER: ${{ matrix.resolver }}
31− CABAL_BUILD_OPTIONS: ${{ matrix.cabal_build_options }}
31+ CABAL_BUILD_OPTIONS: ${{ matrix.cabal_build_options }} --flag limit-build-mem
32 CABAL_BUILD_TARGETS: ${{ matrix.cabal_build_targets }}
32 CABAL_BUILD_TARGETS: ${{ matrix.cabal_build_targets }}
33 CABAL_PROJECT: ${{ matrix.cabal_project }}
33 CABAL_PROJECT: ${{ matrix.cabal_project }}
34 STACK_BUILD_OPTIONS: ${{ matrix.stack_build_options }}
34 STACK_BUILD_OPTIONS: ${{ matrix.stack_build_options }}