Skip to content

Commit

Permalink
Update premerge.yml (#1694)
Browse files Browse the repository at this point in the history
* Change to Maximize build space action.

* Remove Haskell
  • Loading branch information
TrevorBenson authored Oct 22, 2023
1 parent 7a11683 commit c27b8ec
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/premerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c27b8ec

Please sign in to comment.