From 40611d12f5afaa7672659175f38b1e4cfd969283 Mon Sep 17 00:00:00 2001 From: Jon Mason Date: Tue, 8 Jun 2021 11:26:55 -0400 Subject: [PATCH] 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 Signed-off-by: Jon Mason --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 834e16b4..b18373ed 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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