diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-04-05 11:32:11 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2022-04-05 11:44:51 -0400 |
commit | ed62dc66c6fff433349145b4cc41198effedfab8 (patch) | |
tree | 3ea09206775980d95c3278dbacc1ca81960f3c63 | |
parent | aefb1e6d15749dd318e98a326d9df34b26c38cbd (diff) | |
download | haskell-ed62dc66c6fff433349145b4cc41198effedfab8.tar.gz |
gitlab-ci: Disable cabal-install store caching on Windows
For reasons that remain a mystery, cabal-install seems to consistently
corrupt its cache on Windows. Disable caching for now.
Works around #21347.
-rwxr-xr-x | .gitlab/gen_ci.hs | 13 | ||||
-rw-r--r-- | .gitlab/jobs.yaml | 42 |
2 files changed, 21 insertions, 34 deletions
diff --git a/.gitlab/gen_ci.hs b/.gitlab/gen_ci.hs index aaaa721090..9be71acef7 100755 --- a/.gitlab/gen_ci.hs +++ b/.gitlab/gen_ci.hs @@ -590,11 +590,16 @@ job arch opsys buildConfig = (jobName, Job {..}) ,"junit.xml"] } - jobCache = Cache - { cachePaths = [ "cabal-cache", "toolchain" ] - , cacheKey = mkCacheKey arch opsys + jobCache + -- N.B. We have temporarily disabled cabal-install store caching on + -- Windows due to #21347. + | Windows <- opsys = + Cache { cachePaths = [], cacheKey = "no-caching" } + | otherwise = Cache + { cachePaths = [ "cabal-cache", "toolchain" ] + , cacheKey = mkCacheKey arch opsys - } + } jobAllowFailure = False jobStage = "full-build" diff --git a/.gitlab/jobs.yaml b/.gitlab/jobs.yaml index e918c25e7c..a43dcd42f6 100644 --- a/.gitlab/jobs.yaml +++ b/.gitlab/jobs.yaml @@ -1492,11 +1492,8 @@ } }, "cache": { - "key": "x86_64-windows-$CACHE_REV", - "paths": [ - "cabal-cache", - "toolchain" - ] + "key": "no-caching", + "paths": [] }, "dependencies": [], "image": null, @@ -1553,11 +1550,8 @@ } }, "cache": { - "key": "x86_64-windows-$CACHE_REV", - "paths": [ - "cabal-cache", - "toolchain" - ] + "key": "no-caching", + "paths": [] }, "dependencies": [], "image": null, @@ -2521,11 +2515,8 @@ } }, "cache": { - "key": "x86_64-windows-$CACHE_REV", - "paths": [ - "cabal-cache", - "toolchain" - ] + "key": "no-caching", + "paths": [] }, "dependencies": [], "image": null, @@ -2583,11 +2574,8 @@ } }, "cache": { - "key": "x86_64-windows-$CACHE_REV", - "paths": [ - "cabal-cache", - "toolchain" - ] + "key": "no-caching", + "paths": [] }, "dependencies": [], "image": null, @@ -3637,11 +3625,8 @@ } }, "cache": { - "key": "x86_64-windows-$CACHE_REV", - "paths": [ - "cabal-cache", - "toolchain" - ] + "key": "no-caching", + "paths": [] }, "dependencies": [], "image": null, @@ -3697,11 +3682,8 @@ } }, "cache": { - "key": "x86_64-windows-$CACHE_REV", - "paths": [ - "cabal-cache", - "toolchain" - ] + "key": "no-caching", + "paths": [] }, "dependencies": [], "image": null, |