From 607859f6b906e39e23bd36e8939901313f66b648 Mon Sep 17 00:00:00 2001 From: Dino Pacandi Date: Mon, 9 Sep 2024 12:12:50 +0200 Subject: [PATCH 1/3] Test commit --- .github/workflows/macos-disk-cleanup.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/macos-disk-cleanup.yml 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 From e4e55470053953c88dd62e2e00c813bb0c27a29e Mon Sep 17 00:00:00 2001 From: Dino Pacandi Date: Mon, 9 Sep 2024 12:13:32 +0200 Subject: [PATCH 2/3] Before/after --- .github/workflows/macos-disk-cleanup.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/macos-disk-cleanup.yml b/.github/workflows/macos-disk-cleanup.yml index 1f527911f1..272b6a5f92 100644 --- a/.github/workflows/macos-disk-cleanup.yml +++ b/.github/workflows/macos-disk-cleanup.yml @@ -10,6 +10,7 @@ jobs: # https://github.com/actions/runner-images/issues/10511 - name: Disk Cleanup run: | + df -h xcrun simctl delete all || true sudo rm -rf ~/Library/Developer/CoreSimulator/Caches/* || true sudo rm -rfv /Users/runner/Library/Android/sdk || true From 8c09101d3e9017d7f73162c16e3c1b557fa375ae Mon Sep 17 00:00:00 2001 From: Dino Pacandi Date: Mon, 9 Sep 2024 12:15:36 +0200 Subject: [PATCH 3/3] Remove verbose --- .github/workflows/macos-disk-cleanup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/macos-disk-cleanup.yml b/.github/workflows/macos-disk-cleanup.yml index 272b6a5f92..93ac212bbe 100644 --- a/.github/workflows/macos-disk-cleanup.yml +++ b/.github/workflows/macos-disk-cleanup.yml @@ -13,7 +13,7 @@ jobs: df -h 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 /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