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

free disk space for MacOS CI compilation #129

Merged
merged 1 commit into from
Jun 16, 2023
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions .github/workflows/ci_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ jobs:
echo "DO_PUBLISH=$DO_PUBLISH" >> $GITHUB_ENV
echo "DO_PUBLISH: $DO_PUBLISH"

- name: Free disk space
if: env.DO_BUILD == 'true'
run: |
sudo rm -rf "/Applications/Visual Studio.app"
sudo rm -rf "/Applications/Visual Studio 2019.app"
sudo rm -rf "/Users/runner/Library/Android/sdk"
- name: Setup environment
if: env.DO_BUILD == 'true'
run: |
Expand Down
11 changes: 10 additions & 1 deletion build/ci/macos/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,17 @@ rm bottles/freetype* | $SKIP_ERR_FLAG

brew update >/dev/null | $SKIP_ERR_FLAG

# fixing install python 3.9 error (it is a dependency for JACK)
# fixing install python 3.11 error (it is a dependency for JACK)
rm '/usr/local/bin/2to3'
rm '/usr/local/bin/2to3-3.11'
rm '/usr/local/bin/idle3'
rm '/usr/local/bin/idle3.11'
rm '/usr/local/bin/pydoc3'
rm '/usr/local/bin/pydoc3.11'
rm '/usr/local/bin/python3'
rm '/usr/local/bin/python3.11'
rm '/usr/local/bin/python3-config'
rm '/usr/local/bin/python3.11-config'

# additional dependencies
brew install jack lame
Expand Down
2 changes: 1 addition & 1 deletion build/package_mac
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function change_rpath_QWebEngine() {
rm ${WORKING_DIRECTORY}/${COMPRESSEDDMGNAME}

#tip: increase the size if error on copy or macdeployqt
hdiutil create -size 500m -fs HFS+ -volname ${VOLNAME} ${WORKING_DIRECTORY}/${DMGNAME}
hdiutil create -size 800m -fs HFS+ -volname ${VOLNAME} ${WORKING_DIRECTORY}/${DMGNAME}

# Mount the disk image
hdiutil attach ${WORKING_DIRECTORY}/${DMGNAME}
Expand Down