From 91ce331a9b78a93f62b0e82691fb8354b06a284a Mon Sep 17 00:00:00 2001 From: Aloys Zhang Date: Sun, 29 Sep 2024 23:08:34 +0800 Subject: [PATCH] update logic for free disk --- .github/workflows/ci_ut.yml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci_ut.yml b/.github/workflows/ci_ut.yml index 8818a14c69..a30fab12a2 100644 --- a/.github/workflows/ci_ut.yml +++ b/.github/workflows/ci_ut.yml @@ -60,16 +60,21 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Remove unnecessary packages - run: | - echo "=== Before pruning ===" - df -h - sudo rm -rf /usr/share/dotnet - sudo rm -rf /usr/local/lib/android - sudo rm -rf /opt/ghc - echo - echo "=== After pruning ===" - df -h + - name: Free Disk Space + 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: false + + # all of these default to true, but feel free to set to + # "false" if necessary for your workflow + android: true + dotnet: true + haskell: true + large-packages: true + docker-images: true + swap-storage: true - name: Set up JDK uses: actions/setup-java@v4