From c27b8eca5c30c287d3805a105a8db75cd7d851d1 Mon Sep 17 00:00:00 2001 From: illuminatus Date: Sun, 22 Oct 2023 13:56:12 -0700 Subject: [PATCH] Update premerge.yml (#1694) * Change to Maximize build space action. * Remove Haskell --- .github/workflows/premerge.yml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/premerge.yml b/.github/workflows/premerge.yml index 06328eee8..a7329beb5 100644 --- a/.github/workflows/premerge.yml +++ b/.github/workflows/premerge.yml @@ -23,21 +23,14 @@ jobs: BRANCH: ${{ github.event.inputs.branch || '' }} if: github.event.pull_request.draft == false steps: - - name: Provide additional free space - run: | - # Workaround to provide additional free space for builds. - # https://github.com/actions/virtual-environments/issues/2840 - sudo apt-get update -y - sudo apt-get remove -y '^dotnet-.*' - sudo apt-get remove -y 'php.*' - sudo apt-get remove -y azure-cli google-cloud-sdk google-chrome-stable firefox powershell mono-devel - sudo apt-get autoremove -y - sudo apt-get clean - sudo rm -rf "/usr/share/dotnet" - sudo rm -rf "/usr/local/lib/android" - sudo rm -rf "/opt/ghc" - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-android: 'true' + remove-haskell: ' true' - name: Login to GitHub Container Registry uses: docker/login-action@v2 with: