circleci: Build linters with memory-saving ghc-options. (#1490)
Previously, the linters would use the cached build artefacts from building postgrest with -fno-spec-constr via stack.yaml. Potentially passing it to the linter build explicitly will fix recent out-of-memory issues.
This commit is contained in:
@@ -103,8 +103,9 @@ jobs:
|
||||
- run:
|
||||
name: install linters
|
||||
command: |
|
||||
rm -rf $(stack path --dist-dir) $(stack path --local-install-root)
|
||||
stack install hlint stylish-haskell
|
||||
# -fno-spec-constr may help with out-of-memory issues compiling
|
||||
# haskell-src-exts. Compare stack.yaml.
|
||||
stack install --ghc-options=-fno-spec-constr hlint stylish-haskell
|
||||
- save_cache:
|
||||
paths:
|
||||
- "~/.stack"
|
||||
|
||||
Reference in New Issue
Block a user