Skip to content

Commit

Permalink
fix: Prevent no disk space left on device by removing usused SDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
Matovidlo committed Sep 3, 2024
1 parent 4ae8247 commit 2f829d3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,23 @@ jobs:
docker-images: false
swap-storage: false

# To free up disk space to not run out during the run
- name: Delete unused SDKs MacOS
if: matrix.name == 'mac-os'
run: |
echo "BEFORE CLEAN-UP:"
du -sh / 2> /dev/null
du -sa / 2> /dev/null
du -sa
sudo rm -rf ~/.dotnet
sudo rm -rf /Library/Android
sudo rm -rf /Library/Developer/CoreSimulator
echo "AFTER CLEAN-UP:"
du -sh / 2> /dev/null
du -sa / 2> /dev/null
du -sa
continue-on-error: true

- name: Setup Go, tools and caching
uses: ./.github/actions/go-setup
with:
Expand Down

0 comments on commit 2f829d3

Please sign in to comment.