summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-03-31 13:34:01 +0100
committerMatthew Pickering <matthewtpickering@gmail.com>2022-04-01 10:35:59 +0100
commita952dd80d40bf6b67194a44ff71d7bf75957d29e (patch)
tree03a36e05355ec6fa968e784e85c01ea8d4b7f88d
parentacfd5a4c4f0a235240a15dc9f4417a11ece5a143 (diff)
downloadhaskell-a952dd80d40bf6b67194a44ff71d7bf75957d29e.tar.gz
ci: Attempt to fix windows cache issues
It appears that running the script directly does nothing (no info is printed about saving the cache).
-rwxr-xr-x.gitlab/gen_ci.hs7
-rw-r--r--.gitlab/jobs.yaml30
2 files changed, 18 insertions, 19 deletions
diff --git a/.gitlab/gen_ci.hs b/.gitlab/gen_ci.hs
index 14cd5cbdf4..aaaa721090 100755
--- a/.gitlab/gen_ci.hs
+++ b/.gitlab/gen_ci.hs
@@ -559,7 +559,12 @@ job arch opsys buildConfig = (jobName, Job {..})
, ".gitlab/ci.sh test_hadrian"
]
- jobAfterScript =
+ jobAfterScript
+ | Windows <- opsys =
+ [ "bash .gitlab/ci.sh save_cache"
+ , "bash .gitlab/ci.sh clean"
+ ]
+ | otherwise =
[ ".gitlab/ci.sh save_cache"
, ".gitlab/ci.sh clean"
, "cat ci_timings" ]
diff --git a/.gitlab/jobs.yaml b/.gitlab/jobs.yaml
index 90cb8d55a9..e918c25e7c 100644
--- a/.gitlab/jobs.yaml
+++ b/.gitlab/jobs.yaml
@@ -1477,9 +1477,8 @@
},
"nightly-x86_64-windows-int_native-validate": {
"after_script": [
- ".gitlab/ci.sh save_cache",
- ".gitlab/ci.sh clean",
- "cat ci_timings"
+ "bash .gitlab/ci.sh save_cache",
+ "bash .gitlab/ci.sh clean"
],
"allow_failure": false,
"artifacts": {
@@ -1539,9 +1538,8 @@
},
"nightly-x86_64-windows-validate": {
"after_script": [
- ".gitlab/ci.sh save_cache",
- ".gitlab/ci.sh clean",
- "cat ci_timings"
+ "bash .gitlab/ci.sh save_cache",
+ "bash .gitlab/ci.sh clean"
],
"allow_failure": false,
"artifacts": {
@@ -2508,9 +2506,8 @@
},
"release-x86_64-windows-int_native-perf": {
"after_script": [
- ".gitlab/ci.sh save_cache",
- ".gitlab/ci.sh clean",
- "cat ci_timings"
+ "bash .gitlab/ci.sh save_cache",
+ "bash .gitlab/ci.sh clean"
],
"allow_failure": false,
"artifacts": {
@@ -2571,9 +2568,8 @@
},
"release-x86_64-windows-perf": {
"after_script": [
- ".gitlab/ci.sh save_cache",
- ".gitlab/ci.sh clean",
- "cat ci_timings"
+ "bash .gitlab/ci.sh save_cache",
+ "bash .gitlab/ci.sh clean"
],
"allow_failure": false,
"artifacts": {
@@ -3626,9 +3622,8 @@
},
"x86_64-windows-int_native-validate": {
"after_script": [
- ".gitlab/ci.sh save_cache",
- ".gitlab/ci.sh clean",
- "cat ci_timings"
+ "bash .gitlab/ci.sh save_cache",
+ "bash .gitlab/ci.sh clean"
],
"allow_failure": false,
"artifacts": {
@@ -3687,9 +3682,8 @@
},
"x86_64-windows-validate": {
"after_script": [
- ".gitlab/ci.sh save_cache",
- ".gitlab/ci.sh clean",
- "cat ci_timings"
+ "bash .gitlab/ci.sh save_cache",
+ "bash .gitlab/ci.sh clean"
],
"allow_failure": false,
"artifacts": {