diff --git a/.circleci/config.yml b/.circleci/config.yml index ca06ff83f0..6431b8af07 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,15 +12,9 @@ defaults: &defaults name: Figure out resolver for better caching command: grep '^resolver:' stack-build.txt > resolver.txt - - run: - name: Create a composite cabal file for changes detection - command: find . -name "*.cabal" | grep -v -e "stack-work" -e "dist-newstyle" -e "submodules" -e "testdata" | sort | xargs cat > all-cabal.txt - - restore_cache: keys: - - v2-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}-{{ checksum "all-cabal.txt" }} - - v2-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }} - - v2-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }} + - v3-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }} - run: name: Stack upgrade @@ -46,21 +40,15 @@ defaults: &defaults destination: bin - save_cache: - key: v2-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }} + key: v3-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }} paths: &cache_paths - ~/.stack - - ~/build/.stack-work - - ~/build/ghcide/.stack-work - run: name: Build including tests command: stack --stack-yaml=${STACK_FILE} test --no-run-tests --no-terminal no_output_timeout: 120m - - save_cache: - key: v2-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}-{{ checksum "all-cabal.txt" }} - paths: *cache_paths - version: 2 jobs: ghc-8.6.4: