Skip to content

Commit

Permalink
[macOS CI] Delete big SDKs to avoid exhausting disk space
Browse files Browse the repository at this point in the history
Lately we've seen frequent failures on macOS GitHub Action runs due to
disk space issues. Poking with du(1) revealed that
/Library/Developer/CoreSimulator/Caches/dyld was growing to be multiple
gigbytes.

Deleting unused stuff is a known workaround to space issues.

actions/runner-images#2840 (comment)
  • Loading branch information
XrXr committed Aug 30, 2024
1 parent 89bbb9a commit 5b5853c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ jobs:
sudo sysctl -w kern.coredump=1
sudo chmod -R +rwx /cores/
- name: Delete unused SDKs
# To free up disk space to not run out during the run
run: |
sudo rm -rf ~/.dotnet
sudo rm -rf /Library/Android
sudo rm -rf /Library/Developer/CoreSimulator
continue-on-error: true

- name: Run configure
run: ../src/configure -C --disable-install-doc ${ruby_configure_args}

Expand Down

0 comments on commit 5b5853c

Please sign in to comment.