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 <daan.j.demeyer@gmail.com>
This commit is contained in:
Luca Boccassi 2024-03-01 16:53:50 +00:00 committed by Luca Boccassi
parent 793ceda177
commit 5e39dc2f30

View 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