From cb2c1c528ade3b932e171b9b51ac4836835938eb Mon Sep 17 00:00:00 2001 From: brad-allora Date: Thu, 19 Dec 2024 20:08:49 -0600 Subject: [PATCH 1/2] Update goreleaser.yml Signed-off-by: brad-allora --- .github/workflows/goreleaser.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 846219d4e..2948b7ac2 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -17,6 +17,13 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Remove unnecessary directories to free up space + run: | + sudo rm -rf /usr/local/.ghcup + sudo rm -rf /opt/hostedtoolcache/CodeQL + sudo rm -rf /usr/local/lib/android/sdk/ndk + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc - name: Set up Go uses: actions/setup-go@v5 From 890617c28658371b8360b7474370c301d345d2f7 Mon Sep 17 00:00:00 2001 From: brad-allora Date: Thu, 19 Dec 2024 20:13:16 -0600 Subject: [PATCH 2/2] update disk cleanup Signed-off-by: brad-allora --- .github/workflows/goreleaser.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 2948b7ac2..73c07dc38 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -19,11 +19,16 @@ jobs: fetch-depth: 0 - name: Remove unnecessary directories to free up space run: | + echo "Disk space before cleanup:" + df -h sudo rm -rf /usr/local/.ghcup sudo rm -rf /opt/hostedtoolcache/CodeQL sudo rm -rf /usr/local/lib/android/sdk/ndk sudo rm -rf /usr/share/dotnet sudo rm -rf /opt/ghc + sudo apt-get clean + echo "Disk space after cleanup:" + df -h - name: Set up Go uses: actions/setup-go@v5