Improve build cleanup step to reduce failures (#24536)

This commit is contained in:
Nicolas Mowen
2026-10-01 09:43:22 -06:00
committed by GitHub
parent 0936f4b4ef
commit 3d0d12366f
+7 -2
View File
@@ -11,15 +11,20 @@ outputs:
runs:
using: "composite"
steps:
# Stop docker so we can mount more space at /var/lib/docker
# Prune preinstalled images, then stop docker so we can mount more space at
# /var/lib/docker
- name: Stop docker
run: sudo systemctl stop docker
run: |
sudo docker image prune --all --force
sudo systemctl stop docker
shell: bash
# This creates a virtual volume at /var/lib/docker to maximize the size
# As of 2/14/2024, this results in 97G for docker images
# Keep 4G on root for setup-qemu/buildx caches in ~/.docker and the tool cache
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 4096
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'