Skip to content

Commit

Permalink
Enable dynamic linking in stack builds (#2031)
Browse files Browse the repository at this point in the history
* Enable dynamic linking to try and avoid oom

* bump cache keys
  • Loading branch information
pepeiborra committed Jul 22, 2021
1 parent 78381b8 commit 45fdb25
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Expand Up @@ -18,9 +18,9 @@ defaults: &defaults

- restore_cache:
keys:
- stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}-{{ checksum "all-cabal.txt" }}
- stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}
- stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }}
- v2-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}-{{ checksum "all-cabal.txt" }}
- v2-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}
- v2-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }}

- run:
name: Stack upgrade
Expand All @@ -46,7 +46,7 @@ defaults: &defaults
destination: bin

- save_cache:
key: stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }}
key: v2-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }}
paths: &cache_paths
- ~/.stack
- ~/build/.stack-work
Expand All @@ -58,7 +58,7 @@ defaults: &defaults
no_output_timeout: 120m

- save_cache:
key: stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}-{{ checksum "all-cabal.txt" }}
key: v2-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}-{{ checksum "all-cabal.txt" }}
paths: *cache_paths

version: 2
Expand Down
2 changes: 2 additions & 0 deletions stack-8.10.2.yaml
Expand Up @@ -69,6 +69,8 @@ extra-deps:
- unliftio-core-0.2.0.1@sha256:9b3e44ea9aacacbfc35b3b54015af450091916ac3618a41868ebf6546977659a,1082

configure-options:
$targets:
- --enable-executable-dynamic
ghcide:
- --disable-library-for-ghci
haskell-language-server:
Expand Down
2 changes: 2 additions & 0 deletions stack-8.10.3.yaml
Expand Up @@ -69,6 +69,8 @@ extra-deps:
- unliftio-core-0.2.0.1@sha256:9b3e44ea9aacacbfc35b3b54015af450091916ac3618a41868ebf6546977659a,1082

configure-options:
$targets:
- --enable-executable-dynamic
ghcide:
- --disable-library-for-ghci
haskell-language-server:
Expand Down
2 changes: 2 additions & 0 deletions stack-8.10.4.yaml
Expand Up @@ -71,6 +71,8 @@ extra-deps:
# - hlint-3.3@sha256:4218ad6e03050f5d68aeba0e025f5f05e366c8fd49657f2a19df04ee31b2bb23,4154

configure-options:
$targets:
- --enable-executable-dynamic
ghcide:
- --disable-library-for-ghci
haskell-language-server:
Expand Down
2 changes: 2 additions & 0 deletions stack-8.10.5.yaml
Expand Up @@ -73,6 +73,8 @@ extra-deps:
# - hlint-3.3@sha256:4218ad6e03050f5d68aeba0e025f5f05e366c8fd49657f2a19df04ee31b2bb23,4154

configure-options:
$targets:
- --enable-executable-dynamic
ghcide:
- --disable-library-for-ghci
haskell-language-server:
Expand Down
2 changes: 2 additions & 0 deletions stack-8.6.4.yaml
Expand Up @@ -118,6 +118,8 @@ flags:


configure-options:
$targets:
- --enable-executable-dynamic
ghcide:
- --disable-library-for-ghci
haskell-language-server:
Expand Down
2 changes: 2 additions & 0 deletions stack-8.6.5.yaml
Expand Up @@ -107,6 +107,8 @@ extra-deps:
- resourcet-1.2.3

configure-options:
$targets:
- --enable-executable-dynamic
ghcide:
- --disable-library-for-ghci
haskell-language-server:
Expand Down
2 changes: 2 additions & 0 deletions stack-8.8.3.yaml
Expand Up @@ -86,6 +86,8 @@ extra-deps:
- unliftio-core-0.2.0.1@sha256:9b3e44ea9aacacbfc35b3b54015af450091916ac3618a41868ebf6546977659a,1082

configure-options:
$targets:
- --enable-executable-dynamic
ghcide:
- --disable-library-for-ghci
haskell-language-server:
Expand Down
2 changes: 2 additions & 0 deletions stack-8.8.4.yaml
Expand Up @@ -83,6 +83,8 @@ extra-deps:
- unliftio-core-0.2.0.1@sha256:9b3e44ea9aacacbfc35b3b54015af450091916ac3618a41868ebf6546977659a,1082

configure-options:
$targets:
- --enable-executable-dynamic
ghcide:
- --disable-library-for-ghci
haskell-language-server:
Expand Down
2 changes: 2 additions & 0 deletions stack-9.0.1.yaml
Expand Up @@ -101,6 +101,8 @@ extra-deps:
commit: 16e19aaf34e286f3d27b3988c61040823ec66537

configure-options:
$targets:
- --enable-executable-dynamic
ghcide:
- --disable-library-for-ghci
haskell-language-server:
Expand Down
2 changes: 2 additions & 0 deletions stack.yaml
Expand Up @@ -62,6 +62,8 @@ extra-deps:
- unliftio-core-0.2.0.1@sha256:9b3e44ea9aacacbfc35b3b54015af450091916ac3618a41868ebf6546977659a,1082

configure-options:
$targets:
- --enable-executable-dynamic
ghcide:
- --disable-library-for-ghci
haskell-language-server:
Expand Down

0 comments on commit 45fdb25

Please sign in to comment.