Skip to content

Commit

Permalink
Save disk space by removing unused Xcode installations
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Aug 29, 2024
1 parent 78fd631 commit 6a1ff03
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/distribute-toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ jobs:
DARWIN_TOOLCHAIN_INSTALLER_CERT_BASE64: ${{ secrets.DARWIN_TOOLCHAIN_INSTALLER_CERT_BASE64 }}
DARWIN_TOOLCHAIN_INSTALLER_CERT_PASSWORD: ${{ secrets.DARWIN_TOOLCHAIN_INSTALLER_CERT_PASSWORD }}

- name: Free disk space by removing unused Xcode
run: |
IN_USE_XCODE=$(xcode-select -p)
echo "Removing all Xcode installations except $IN_USE_XCODE"
for xcode in /Applications/Xcode*.app; do
if [[ $IN_USE_XCODE != "$xcode"* ]]; then
echo "Removing $xcode"
rm -rf $xcode
fi
done
- run: ./tools/gh-distribute-toolchain --scheme ${{ inputs.scheme }} --verbose --skip-history ${{ inputs.run-id }}
working-directory: ./swiftwasm-build
env:
Expand Down

0 comments on commit 6a1ff03

Please sign in to comment.