Skip to contentSkip to conversation

ci: clean regularly to reduce size

PATCH New Jon Mason 1 participant 1 message Jun 8, 2021

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/1 ci: clean regularly to reduce size

The Gitlab CI executors do not clean-up after each run, which will result in a ballooning size over time. Remove all files in the work tree, removing the problem. SSTATE should prevent this from causing any performance by not having the files there.

Change-Id I57df3cf470c519286fe194739a0a7722794f3b25
---
 .gitlab-ci.yml | 1 +
 1 file changed, 1 insertion(+)
.gitlab-ci.yml +1 -0
index 834e16b..b18373e 100644
@@ -20,6 +20,7 @@ stages:
     - echo KAS_WORK_DIR = $KAS_WORK_DIR
     - echo SSTATE_DIR = $SSTATE_DIR
     - echo DL_DIR = $DL_DIR
+    - rm -rf $KAS_WORK_DIR
     - mkdir --verbose --parents $KAS_WORK_DIR $KAS_REPO_REF_DIR $SSTATE_DIR $DL_DIR $TOOLCHAIN_DIR
 
 # Generalised fragment to do a Kas build
Signature · 1 line
2.17.1