From c74206ade63b9cf9c882b4901d527ef13c25ebe1 Mon Sep 17 00:00:00 2001
From: shadrach <shadrachtemitayo@gmail.com>
Date: Tue, 17 Dec 2024 12:31:35 +0100
Subject: [PATCH] fix: storage issue

---
 .github/workflows/build-server.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.github/workflows/build-server.yaml b/.github/workflows/build-server.yaml
index 29afe40e3..51c79b4ad 100644
--- a/.github/workflows/build-server.yaml
+++ b/.github/workflows/build-server.yaml
@@ -38,6 +38,12 @@ jobs:
       - name: Check out repository
         uses: actions/checkout@v4
 
+      - name: Delete huge unnecessary tools folder
+        run: |
+          echo "DISK USE:"; find / -maxdepth 1 -mindepth 1 -type d -exec du -hs {} \; 2>/dev/null
+          rm -rf /opt/hostedtoolcache
+          echo "DISK USE:"; find / -maxdepth 1 -mindepth 1 -type d -exec du -hs {} \; 2>/dev/null
+
       - name: Set up the environment
         # Replace this line with the appropriate setup for your project
         # Examples: