diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b5f619a9..909f7da3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,13 +11,20 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Free Disk Space for Android - run: | - sudo swapoff -a - sudo rm -f /swapfile - sudo apt clean - docker rmi $(docker images -q) - df -h + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + # this might remove tools that are actually needed, + # if set to "true" but frees about 6 GB + tool-cache: true + # all of these default to true, but feel free to set to + # "false" if necessary for your workflow + android: false + dotnet: true + haskell: true + large-packages: true + docker-images: true + swap-storage: true # Cache - uses: actions/cache@v3