From bad80a64ef9b76dd7441085d3631c2c2a13e1408 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Thu, 15 Feb 2024 00:16:53 +0000 Subject: [PATCH] Fix builds (#9852) * show images for troubleshooting * more debug and try max space action * fixes * oops * maximize first * mount build volume for docker use * moved to shared setup and cleanup * remove temp branch * remove rocm for master --- .github/actions/setup/action.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index c96102edb..88ceab935 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -11,11 +11,22 @@ outputs: runs: using: "composite" steps: - - name: Remove unnecessary files - run: | - sudo rm -rf /usr/share/dotnet - sudo rm -rf /usr/local/lib/android - sudo rm -rf /opt/ghc + # Stop docker so we can mount more space at /var/lib/docker + - name: Stop docker + run: 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 + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + remove-dotnet: 'true' + remove-android: 'true' + remove-haskell: 'true' + remove-codeql: 'true' + build-mount-path: '/var/lib/docker' + - name: Start docker + run: sudo systemctl start docker shell: bash - id: lowercaseRepo uses: ASzc/change-string-case-action@v5