Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fastlane build by freeing extra space #764

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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