From 73e6221fb6846b2b696516d8321704adb653e834 Mon Sep 17 00:00:00 2001 From: joneshf Date: Sun, 29 Jul 2018 09:22:00 -0700 Subject: [PATCH] Use the cache to circumvent building Since we use `stack` to run `hpack` to generate the cabal file, we need `stack` to have its cache all setup properly. We could eschew `hpack` to relax this requirement... --- .circleci/config.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 38111f6..cfc1c3f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,6 +5,12 @@ jobs: - image: haskell:8.2.2 steps: - checkout + - restore_cache: + keys: + - v1-stack-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }} + - v1-stack-{{ checksum "package.yaml" }}- + - v1-stack- + name: Restoring stack cache - run: name: Build sdist command: make sdist