From 82da00f50a6caf909eb05c5b9917425e738570cd Mon Sep 17 00:00:00 2001 From: evdokimovs Date: Tue, 3 Sep 2024 11:05:53 +0200 Subject: [PATCH] ci: add cleanup for MacOS --- .github/workflows/ci.yml | 2 ++ disk_cleanup_mac.sh | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100755 disk_cleanup_mac.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d74304b..6f667f79 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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) }} diff --git a/disk_cleanup_mac.sh b/disk_cleanup_mac.sh new file mode 100755 index 00000000..68e51350 --- /dev/null +++ b/disk_cleanup_mac.sh @@ -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