@@ -39,10 +39,15 @@ jobs:
3939 run : |
4040 sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc \
4141 /opt/hostedtoolcache/CodeQL /usr/local/share/boost \
42- "$AGENT_TOOLSDIRECTORY"
42+ "$AGENT_TOOLSDIRECTORY" \
43+ /usr/local/.ghcup \
44+ /opt/hostedtoolcache/*
4345 sudo apt-get autoremove --purge -y \
4446 azure-cli google-chrome-stable firefox powershell mongodb-* \
45- mysql-* postgresql-* || true
47+ mysql-* postgresql-* snapd || true
48+ # Drop docker images that ship preloaded on the runner; they
49+ # eat ~10 GB on /var/lib/docker by default.
50+ sudo docker image prune -af 2>/dev/null || true
4651 df -h
4752
4853 - name : Install Yocto host + qemu deps
@@ -114,6 +119,14 @@ jobs:
114119 SSTATE_DIR ?= "${TOPDIR}/../../sstate-cache"
115120 DL_DIR ?= "${TOPDIR}/../../downloads"
116121
122+ # GHA hosted runners only have ~30 GB free after the disk
123+ # cleanup step; the full Weston image with vscode pulled in
124+ # easily blows past that without rm_work, especially on
125+ # do_unpack of the 200 MB VSCode tarball deep into the
126+ # build. rm_work scrubs each recipe's workdir after
127+ # do_package, reclaiming 5-15 GB.
128+ INHERIT += "rm_work"
129+
117130 # Weston + ssh + VSCode + the launcher into the image.
118131 IMAGE_INSTALL:append = " vscode vscode-weston-launcher wayland-utils"
119132 IMAGE_FEATURES:append = " ssh-server-openssh debug-tweaks"
0 commit comments