git.iko.soy/typeable/rollbar-hs
on master help sign in
Cache dependencies and compilation artifacts

Should speed up the build considerably.

commit53a3786bef947df1337339f6fcd9c1cb192083a5 authorjoneshf <jones3.hardy@gmail.com> dateTue 24 Jul 2018, 06:39 (8 years ago) parentfe63e98
1 file changed+22
.circleci/config.yml+22
.circleci/config.yml+22
@@ -5,6 +5,18 @@ jobs:
55 - image: haskell:8.2.2
66 steps:
77 - checkout
8+ - restore_cache:
9+ keys:
10+ - v1-stack-root-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
11+ - v1-stack-root-{{ checksum "package.yaml" }}-
12+ - v1-stack-root-
13+ name: Restoring stack root cache
14+ - restore_cache:
15+ keys:
16+ - v1-stack-work-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
17+ - v1-stack-work-{{ checksum "package.yaml" }}-
18+ - v1-stack-work-
19+ name: Restoring stack work cache
820 - run:
921 name: Setup
1022 command: stack setup
@@ -14,3 +26,13 @@ jobs:
1426 - run:
1527 name: Test
1628 command: stack test
29+ - save_cache:
30+ key: v1-stack-root-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
31+ name: Caching stack root
32+ paths:
33+ - /root/.stack
34+ - save_cache:
35+ key: v1-stack-work-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
36+ name: Caching stack work
37+ paths:
38+ - .stack-work