Skip to content

gitlab-ci: Avoid duplicating ~/.cabal contents with every build

Ben Gamari requested to merge wip/fix-cabal-duplication into master

Previously our attempt to cache the cabal store would cp cabal-cache ~/.cabal. However, if the latter already existed this meant that we would end up with ~/.cabal/cabal-cache. Not only would this not help caching but it would exponentially grow the size of ~/.cabal. Not good!

Edited by Ben Gamari

Merge request reports