Skip to content

Commit

Permalink
ci: add cleanup for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
evdokimovs committed Sep 3, 2024
1 parent 45f3630 commit 82da00f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ jobs:

- run: ./disk_cleanup.sh
if: ${{ contains('android linux', matrix.os) }}
- run: ./disk_cleanup_mac.sh
if: ${{ contains('macos ios', matrix.os) }}
- run: powershell .\disk_cleanup.bat
if: ${{ contains('windows', matrix.os) }}

Expand Down
27 changes: 27 additions & 0 deletions disk_cleanup_mac.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

df -h

# Cache 済み Docker Image の削除
docker rmi $(docker images -q -a)
sudo docker image prune --all --force

# # ghcup の削除
# sudo rm -rf /usr/local/.ghcup
#
# # Swift の削除
# sudo rm -rf /usr/share/swift
#
# # Boost の削除
# sudo rm -rf /usr/local/share/boost
#
# # .Net Core の削除
# sudo rm -rf /usr/share/dotnet
#
# # Haskell の削除
# sudo rm -rf /opt/ghc

# Android SDK の削除
sudo rm -rf /usr/local/share/android-sdk

df -h

0 comments on commit 82da00f

Please sign in to comment.