[Git][ghc/ghc][wip/lint-cache] gitlab-ci: Cache cabal store in linting job
Ben Gamari
gitlab at gitlab.haskell.org
Wed Nov 11 21:54:40 UTC 2020
Ben Gamari pushed to branch wip/lint-cache at Glasgow Haskell Compiler / GHC
Commits:
2aacc7b4 by Ben Gamari at 2020-11-11T16:54:28-05:00
gitlab-ci: Cache cabal store in linting job
- - - - -
1 changed file:
- .gitlab-ci.yml
Changes:
=====================================
.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)
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2aacc7b446557dfdd37ff46cd8c9154ffbe501a6
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2aacc7b446557dfdd37ff46cd8c9154ffbe501a6
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20201111/f17eb7d9/attachment.html>
More information about the ghc-commits
mailing list