From 5e39dc2f308c5773bef09111ca7b0fd3ffc63aee Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Fri, 1 Mar 2024 16:53:50 +0000 Subject: [PATCH] CI: free up diskspace before mkosi jobs The runner has a lot of useless things installed, taking ~10GB, and jobs have started to fail when booting images due to lack of disk space, so delete some directories to make room. 2024-02-27T20:20:58.0998709Z ##[warning]You are running out of disk space. The runner will stop working when the machine runs out of disk space. Free space left: 0 MB Co-authored-by: Daan De Meyer --- .github/workflows/mkosi.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml index bca6261cb3a..3690f74d0d0 100644 --- a/.github/workflows/mkosi.yml +++ b/.github/workflows/mkosi.yml @@ -78,6 +78,11 @@ jobs: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - uses: systemd/mkosi@070528fec478fc93af7ec057a5d2fd0045123c99 + - name: Free disk space + run: | + sudo rm -rf /usr/local + sudo rm -rf /opt/hostedtoolcache + - name: Configure run: | tee mkosi.local.conf <