Skip to content

Commit

Permalink
Remove unneccessary directories in go releaser CI build flow (#728)
Browse files Browse the repository at this point in the history
## Purpose of Changes and their Description

Fixes an issue where the goreleaser CI build system was running out of disk space on the machine responsible for building the binary.
  • Loading branch information
relyt29 authored Dec 20, 2024
2 parents 940fe98 + 890617c commit 41ee793
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ jobs:
uses: actions/checkout@v4
with:
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
Expand Down

0 comments on commit 41ee793

Please sign in to comment.