From ae77cf9a088ead2dc8440a48720f02e93ae6dc1c Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 19 Apr 2020 21:15:12 +0200 Subject: [PATCH] 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. --- .circleci/config.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1aef758d2..21edde042 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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"