Skip to content

Commit

Permalink
CI: Remove unused Xcode to free up space
Browse files Browse the repository at this point in the history
  • Loading branch information
khronokernel committed Sep 9, 2024
1 parent e7fb29a commit 92b85a8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ jobs:
p12-file-base64: ${{ secrets.ORG_MAC_DEVELOPER_ID_INSTALLER_CERT_P12_BASE64 }}
p12-password: ${{ secrets.ORG_MAC_DEVELOPER_ID_INSTALLER_CERT_P12_PASSWORD }}

- name: Free up space
run: |
/bin/rm -rf /Applications/Xcode_16.1_beta.app
/bin/rm -rf /Applications/Xcode_16_beta_6.app
/bin/rm -rf /Applications/Xcode_15.3.app
/bin/rm -rf /Applications/Xcode_15.2.app
/bin/rm -rf /Applications/Xcode_15.1.app
/bin/rm -rf /Applications/Xcode_15.0.1.app
/bin/rm -rf /Applications/Xcode_14.3.1.app
/bin/rm -rf /Users/runner/Library/Android/sdk
- name: Install dependencies
run: python3 -m pip install -r requirements.txt

Expand Down
2 changes: 2 additions & 0 deletions metal_libraries/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def download(ci: bool = False) -> str:
if ci is True:
builds_to_ignore = CIInfo().published_releases()
url = FetchIPSW(builds_to_ignore).fetch()
if url is None:
return ""
file = DownloadFile(url).file()
return file

Expand Down

0 comments on commit 92b85a8

Please sign in to comment.