From 53e461d9788744bdd107e7d2043d71625324a682 Mon Sep 17 00:00:00 2001 From: Dhinak G <17605561+dhinakg@users.noreply.github.com> Date: Wed, 18 Sep 2024 10:36:57 -0400 Subject: [PATCH] Try to free up CI storage at start of run --- .github/workflows/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2b6be01..f2e937e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,6 +33,19 @@ jobs: runs-on: macos-latest steps: + - name: Clean up storage + run: | + mkdir empty_dir + if [ -d "/Applications/Xcode_14.3.1.app/" ]; then + rsync -a --delete empty_dir/ /Applications/Xcode_14.3.1.app/ + fi + if [ -d "/Applications/Xcode_14.1.app/" ]; then + rsync -a --delete empty_dir/ /Applications/Xcode_14.1.app/ + fi + if [ -d "/Applications/Xcode_13.1.app/" ]; then + rsync -a --delete empty_dir/ /Applications/Xcode_13.1.app/ + fi + rsync -a --delete empty_dir/ /Users/runner/Library/Android/sdk/ - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: @@ -71,6 +84,19 @@ jobs: runs-on: macos-latest steps: + - name: Clean up storage + run: | + mkdir empty_dir + if [ -d "/Applications/Xcode_14.3.1.app/" ]; then + rsync -a --delete empty_dir/ /Applications/Xcode_14.3.1.app/ + fi + if [ -d "/Applications/Xcode_14.1.app/" ]; then + rsync -a --delete empty_dir/ /Applications/Xcode_14.1.app/ + fi + if [ -d "/Applications/Xcode_13.1.app/" ]; then + rsync -a --delete empty_dir/ /Applications/Xcode_13.1.app/ + fi + rsync -a --delete empty_dir/ /Users/runner/Library/Android/sdk/ - uses: actions/checkout@v4 - name: Cache test files id: cache