From 36a358e07e0bb87d4f34b309810eca08896ce061 Mon Sep 17 00:00:00 2001 From: Yelin Jeong Date: Fri, 26 Apr 2024 11:15:54 +0900 Subject: [PATCH] Action: Remove unused package to free up more space This patch removes unused package in runner to free up more space Signed-off-by: Yelin Jeong --- .github/workflows/android.yml | 20 ++++++++++++++++++++ externals/build.gradle.kts | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 84aefe5..add5d1b 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -10,6 +10,26 @@ jobs: build: runs-on: ubuntu-22.04 steps: + - name: Free unused disk space + shell: bash + run: | + sudo apt-get remove -y '^dotnet-.*' + sudo apt-get remove -y '^llvm-.*' + sudo apt-get remove -y '^mysql-server-core-.*' + sudo apt-get remove -y '^postgresql-.*' + sudo apt-get remove -y azure-cli google-chrome-stable google-cloud-cli firefox powershell microsoft-edge-stable mono-devel + sudo apt-get purge docker-ce docker-ce-cli + sudo apt-get autoremove -y + + sudo rm -rf /usr/share/dotnet/ + sudo rm -rf /usr/share/swift + sudo rm -rf /usr/share/miniconda + sudo rm -rf /usr/local/graalvm/ + sudo rm -rf /usr/local/.ghcup/ + sudo rm -rf /usr/local/share/powershell + sudo rm -rf /usr/local/share/chromium + sudo rm -rf /usr/local/lib/node_modules + sudo rm -rf /var/lib/docker - uses: nttld/setup-ndk@v1 id: setup-ndk with: diff --git a/externals/build.gradle.kts b/externals/build.gradle.kts index abd3274..6c6ebe5 100644 --- a/externals/build.gradle.kts +++ b/externals/build.gradle.kts @@ -93,7 +93,7 @@ tasks { } catch (e: java.io.IOException) { println("Failed to decompress $downloadablePath/$xzFileName") } finally { - Path("$downloadablePath/xzFileName").deleteIfExists() + Path("$downloadablePath/$xzFileName").deleteIfExists() } } }