@@ -12,54 +12,37 @@ defaults: &defaults
1212 name : Figure out resolver for better caching
1313 command : grep '^resolver:' stack-build.txt > resolver.txt
1414
15- - run :
16- name : Create a composite cabal file for changes detection
17- command : find . -name "*.cabal" | grep -v -e "stack-work" -e "dist-newstyle" -e "submodules" -e "testdata" | sort | xargs cat > all-cabal.txt
18-
1915 - restore_cache :
2016 keys :
21- - v2-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}-{{ checksum "all-cabal.txt" }}
22- - v2-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}
23- - v2-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }}
17+ - v4-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }}
2418
2519 - run :
2620 name : Stack upgrade
2721 command : stack upgrade
2822
2923 - run :
3024 name : Stack setup
31- command : stack -j 2 --stack-yaml=${STACK_FILE} setup
25+ command : stack -j2 --stack-yaml=${STACK_FILE} setup
3226
3327 - run :
3428 name : Build (we need the exe for tests)
3529 # need j1, else ghc-lib-parser triggers OOM
36- command : stack -j 1 --stack-yaml=${STACK_FILE} install --no-terminal
30+ command : stack -j1 --stack-yaml=${STACK_FILE} install --no-terminal
3731 no_output_timeout : 30m
3832
3933 - run :
4034 name : Build Testsuite without running it
41- command : stack -j 1 --stack-yaml=${STACK_FILE} build --test --no-run-tests --no-terminal
35+ command : stack -j1 --stack-yaml=${STACK_FILE} build --test --no-run-tests --no-terminal
4236 no_output_timeout : 30m
4337
4438 - store_artifacts :
4539 path : ~/.local/bin
4640 destination : bin
4741
4842 - save_cache :
49- key : v2 -stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }}
43+ key : v4 -stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }}
5044 paths : &cache_paths
5145 - ~/.stack
52- - ~/build/.stack-work
53- - ~/build/ghcide/.stack-work
54-
55- - run :
56- name : Build including tests
57- command : stack --stack-yaml=${STACK_FILE} test --no-run-tests --no-terminal
58- no_output_timeout : 120m
59-
60- - save_cache :
61- key : v2-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}-{{ checksum "all-cabal.txt" }}
62- paths : *cache_paths
6346
6447version : 2
6548jobs :
0 commit comments