mirror of
https://github.com/haskell/haskell-ide-engine.git
synced 2024-09-11 11:05:30 +03:00
Add HIE_CACHE env var
This commit is contained in:
parent
9bfa9bb002
commit
c9646ebe58
@ -22,9 +22,9 @@ defaults: &defaults
|
||||
|
||||
- restore_cache:
|
||||
keys:
|
||||
- stack-cache-12-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}-{{ checksum "all-cabal.txt" }}
|
||||
- stack-cache-12-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}
|
||||
- stack-cache-12-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }}
|
||||
- stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}-{{ checksum "all-cabal.txt" }}
|
||||
- stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}
|
||||
- stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }}
|
||||
|
||||
- run:
|
||||
name: Stack setup
|
||||
@ -59,7 +59,7 @@ defaults: &defaults
|
||||
command: rm -fr ~/.cache/cabal-helper
|
||||
|
||||
- save_cache:
|
||||
key: stack-cache-12-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }}
|
||||
key: stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }}
|
||||
paths:
|
||||
- ~/.stack
|
||||
- ~/.cache
|
||||
@ -81,7 +81,7 @@ defaults: &defaults
|
||||
path: test-logs
|
||||
|
||||
- save_cache:
|
||||
key: stack-cache-12-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}
|
||||
key: stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}
|
||||
paths:
|
||||
- ~/.stack
|
||||
- ~/.cache
|
||||
@ -94,7 +94,7 @@ defaults: &defaults
|
||||
- ~/build/submodules/cabal-helper/.stack-work
|
||||
|
||||
- save_cache:
|
||||
key: stack-cache-12-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}-{{ checksum "all-cabal.txt" }}
|
||||
key: stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}-{{ checksum "all-cabal.txt" }}
|
||||
paths:
|
||||
- ~/.stack
|
||||
- ~/.cache
|
||||
@ -168,7 +168,7 @@ jobs:
|
||||
command: git submodule update --recursive --init
|
||||
- restore-cache:
|
||||
keys:
|
||||
- cabal-12-{{ arch }}-{{ .Environment.CIRCLE_JOB }}
|
||||
- cabal-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}
|
||||
- run:
|
||||
name: Cabal version
|
||||
command: cabal --version
|
||||
@ -182,7 +182,7 @@ jobs:
|
||||
name: Build
|
||||
command: cabal new-build -j2
|
||||
- save_cache:
|
||||
key: cabal-12-{{ arch }}-{{ .Environment.CIRCLE_JOB }}
|
||||
key: cabal-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}
|
||||
paths:
|
||||
- ~/.cabal
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user