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:
Robert
2020-04-19 14:15:12 -05:00
committed by GitHub
parent 4a0a37588f
commit ae77cf9a08
+3 -2
View File
@@ -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"