Skip to content

Commit

Permalink
Try to free up CI storage at start of run
Browse files Browse the repository at this point in the history
  • Loading branch information
dhinakg committed Sep 18, 2024
1 parent 46945f2 commit 53e461d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 53e461d

Please sign in to comment.