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:
|
- run:
|
||||||
name: install linters
|
name: install linters
|
||||||
command: |
|
command: |
|
||||||
rm -rf $(stack path --dist-dir) $(stack path --local-install-root)
|
# -fno-spec-constr may help with out-of-memory issues compiling
|
||||||
stack install hlint stylish-haskell
|
# haskell-src-exts. Compare stack.yaml.
|
||||||
|
stack install --ghc-options=-fno-spec-constr hlint stylish-haskell
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
paths:
|
||||||
- "~/.stack"
|
- "~/.stack"
|
||||||
|
|||||||
Reference in New Issue
Block a user