Skip to content

Commit

Permalink
Run "free extra space" when building iOS via fastlane
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeage committed Sep 11, 2024
1 parent de64fc6 commit 2febb73
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ jobs:
publish_ios_zapbox:
name: Publish Zapbox iOS
needs: [configuration, build]
runs-on: macos-14 # ARM64 workers. Change this back to -latest when they get promoted
runs-on: macos-latest
if: |
github.event_name == 'push' &&
github.repository == 'icosa-foundation/open-brush' &&
Expand All @@ -1248,6 +1248,19 @@ jobs:
Gemfile.lock
fastlane
- name: Free extra space
# As of 02/08/2024, this increases free space from 21GB to 47GB
run: |
echo "Initial free space"
df -h
rm -rf "$AGENT_TOOLSDIRECTORY"
echo "Disk space after cleanup of \$AGENT_TOOLSDIRECTORY"
df -h
echo "Deleting all Xcode versions except 15.4"
find /Applications/Xcode_* -maxdepth 0 -type d ! -name 'Xcode_15.4.app' -exec rm -rf {} \;
df -h
find /Applications/Xcode* -name "*.app" -exec du -mcsh {} \; # Shows Xcode app sizes
- name: Download iOS Artifact
uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit 2febb73

Please sign in to comment.