Skip to content

Commit

Permalink
Fix fastlane build by freeing extra space (#764)
Browse files Browse the repository at this point in the history
Run "free extra space" when building iOS via fastlane
  • Loading branch information
mikeage authored Sep 11, 2024
1 parent de64fc6 commit e14f94c
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 e14f94c

Please sign in to comment.