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: