summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-11-11 16:53:06 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-11-13 14:30:51 -0500
commit24a86f09da3426cf1006004bc45d312725280dd5 (patch)
treed5f0c7b95d7321e29beff57a5615e2aab09cd3c8 /.gitlab-ci.yml
parentde7ec9dd2bd573d5950ae294747d2bdb45051000 (diff)
downloadhaskell-24a86f09da3426cf1006004bc45d312725280dd5.tar.gz
gitlab-ci: Cache cabal store in linting job
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 447058a163..034af88d01 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -307,16 +307,20 @@ hadrian-ghc-in-ghci:
- .gitlab/ci.sh setup
- cabal update
- cd hadrian; cabal new-build -j`../mk/detect-cpu-count.sh` --with-compiler=$GHC --project-file=ci.project; cd ..
+ after_script:
+ - cp -Rf $HOME/.cabal cabal-cache
variables:
GHC_FLAGS: -Werror
+ cache:
+ key: lint
+ paths:
+ - cabal-cache
lint-base:
extends: .lint-params
script:
- hadrian/build -c -j stage1:lib:base
- hadrian/build -j lint:base
- cache:
- key: lint
############################################################
# Validation via Pipelines (make)