From d49311fc3168268961292e4d2653f4359155f8e2 Mon Sep 17 00:00:00 2001
From: Yelin Jeong <yelini.jeong@samsung.com>
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 <yelini.jeong@samsung.com>
---
 .github/workflows/android.yml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

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: