@@ -12,54 +12,37 @@ defaults: &defaults
12
12
name : Figure out resolver for better caching
13
13
command : grep '^resolver:' stack-build.txt > resolver.txt
14
14
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
-
19
15
- restore_cache :
20
16
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" }}
24
18
25
19
- run :
26
20
name : Stack upgrade
27
21
command : stack upgrade
28
22
29
23
- run :
30
24
name : Stack setup
31
- command : stack -j 2 --stack-yaml=${STACK_FILE} setup
25
+ command : stack -j2 --stack-yaml=${STACK_FILE} setup
32
26
33
27
- run :
34
28
name : Build (we need the exe for tests)
35
29
# 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
37
31
no_output_timeout : 30m
38
32
39
33
- run :
40
34
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
42
36
no_output_timeout : 30m
43
37
44
38
- store_artifacts :
45
39
path : ~/.local/bin
46
40
destination : bin
47
41
48
42
- 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" }}
50
44
paths : &cache_paths
51
45
- ~/.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
63
46
64
47
version : 2
65
48
jobs :
0 commit comments