]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
CI: free up diskspace before mkosi jobs
authorLuca Boccassi <bluca@debian.org>
Fri, 1 Mar 2024 16:53:50 +0000 (16:53 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 1 Mar 2024 20:04:13 +0000 (20:04 +0000)
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 <daan.j.demeyer@gmail.com>
.github/workflows/mkosi.yml

index bca6261cb3a66d09a26222e252533b261c27f7c9..3690f74d0d0d4df51ad38b2030d0f16b6fd15a5d 100644 (file)
@@ -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 <<EOF