ci: clean regularly to reduce size
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
Signed-off-by Jon Mason <[email protected]>
--- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+)
.gitlab-ci.yml +1 -0
@@ -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