From da573a180552f90d76e42287134b07496d50a2ed Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Thu, 16 Apr 2020 12:23:09 +0200 Subject: [PATCH] circleci: Dedicated cache key for style checks --- .circleci/config.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index d9d375a93..26aa8591d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -57,6 +57,9 @@ jobs: - image: circleci/buildpack-deps:trusty steps: - checkout + - restore_cache: + keys: + - v1-stack-style-dependencies-{{ checksum "stack.yaml" }} - run: name: install stack command: | @@ -68,6 +71,11 @@ jobs: command: | rm -rf $(stack path --dist-dir) $(stack path --local-install-root) stack install hlint stylish-haskell + - save_cache: + paths: + - "~/.stack" + - ".stack-work" + key: v1-stack-style-dependencies-{{ checksum "stack.yaml" }} - run: name: Add stack tools to $PATH command: |