diff --git a/.github/workflows/macos-disk-cleanup.yml b/.github/workflows/macos-disk-cleanup.yml new file mode 100644 index 0000000000..1f527911f1 --- /dev/null +++ b/.github/workflows/macos-disk-cleanup.yml @@ -0,0 +1,21 @@ +name: Disk cleanup + +on: + pull_request: +jobs: + test-disk-cleanup: + runs-on: macos-latest + steps: + # Temporary dirty fix + # https://github.com/actions/runner-images/issues/10511 + - name: Disk Cleanup + run: | + xcrun simctl delete all || true + sudo rm -rf ~/Library/Developer/CoreSimulator/Caches/* || true + sudo rm -rfv /Users/runner/Library/Android/sdk || true + sudo rm -rf /Applications/Xcode_14.3.1.app || true + sudo rm -rf /Applications/Xcode_15.0.1.app || true + sudo rm -rf /Applications/Xcode_15.1.app || true + sudo rm -rf /Applications/Xcode_15.2.app || true + sudo rm -rf /Applications/Xcode_15.3.app || true + df -h