diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-11-11 16:53:06 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2020-11-11 16:54:28 -0500 |
commit | 2aacc7b446557dfdd37ff46cd8c9154ffbe501a6 (patch) | |
tree | 507b8d13274e509df5147ca86eb5d1cb751e4340 | |
parent | 2e63a0fb1bdaecc7916a3cc35dcfd2b2ef37c328 (diff) | |
download | haskell-wip/lint-cache.tar.gz |
gitlab-ci: Cache cabal store in linting jobwip/lint-cache
-rw-r--r-- | .gitlab-ci.yml | 8 |
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) |