Skip to content

Commit 389e188

Browse files
Raise the GHC heap limit for streamly-core haddock in packdiff CI
The haddock build of streamly-core on GHC 9.8.4 needs more than the 500M set by limit-build-mem (it peaked at 522M in use). Override it for packdiff only, via cabal.project.local which survives packdiff's git checkouts.
1 parent f08bf02 commit 389e188

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎.github/workflows/packdiff.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,17 @@ jobs:
7979
cabal install packdiff --project-file=cabal.project.packdiff --installdir=$HOME/.local/bin --overwrite-policy=always
8080
fi
8181
82+
# packdiff runs "cabal haddock" with the default project. The haddock
83+
# build of streamly-core needs more than the 500M that limit-build-mem
84+
# sets. cabal.project.local is untracked, it survives packdiff's git
85+
# checkouts. A later -M overrides the earlier one.
86+
- name: Raise the GHC heap limit for haddock builds
87+
run: |
88+
cat > cabal.project.local <<EOF
89+
package streamly-core
90+
ghc-options: +RTS -M800M -RTS
91+
EOF
92+
8293
- name: Run packdiff on streamly-core
8394
run: |
8495
cabal run packdiff --project-file=cabal.project.packdiff -- \

0 commit comments

Comments
 (0)