From f118e61a3b01721af87147d58b44b7a21f8f49d3 Mon Sep 17 00:00:00 2001 From: Andre Miras Date: Sun, 7 Dec 2025 11:03:04 +0000 Subject: [PATCH] :construction_worker: CI disk cleanup via maximize-build-space Replace manual disk cleanup scripts with easimon/maximize-build-space@v10 in ubuntu_build and ubuntu_rebuild_updated_recipes jobs. This action can free 40-60 GB compared to the previous ~2-4 GB cleanup, resolving intermittent "No space left on device" build failures. --- .github/workflows/push.yml | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index fa0f142ad..85d0fe223 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -78,17 +78,18 @@ jobs: - name: qt target: testapps-qt steps: + - name: Maximize build space + uses: easimon/maximize-build-space@v10 + with: + root-reserve-mb: 30720 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-android: 'true' + remove-haskell: 'true' + remove-codeql: 'true' + remove-docker-images: 'true' - name: Checkout python-for-android uses: actions/checkout@v5 - # helps with GitHub runner getting out of space - - name: Free disk space - run: | - df -h - sudo swapoff -a - sudo rm -f /swapfile - sudo apt -y clean - docker images -q | xargs -r docker rmi - df -h - name: Build python-for-android docker image run: | docker build --tag=kivy/python-for-android . @@ -203,19 +204,20 @@ jobs: env: REBUILD_UPDATED_RECIPES_EXTRA_ARGS: --arch=${{ matrix.android_arch }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@v10 + with: + root-reserve-mb: 30720 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-android: 'true' + remove-haskell: 'true' + remove-codeql: 'true' + remove-docker-images: 'true' - name: Checkout python-for-android (all-history) uses: actions/checkout@v5 with: fetch-depth: 0 - # helps with GitHub runner getting out of space - - name: Free disk space - run: | - df -h - sudo swapoff -a - sudo rm -f /swapfile - sudo apt -y clean - docker images -q | xargs -r docker rmi - df -h - name: Pull docker image run: | make docker/pull