diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2024-08-30 15:40:46 -0400 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2024-08-30 16:36:28 -0400 |
| commit | eef2121cf3e755cdf33538647d40993d296f9a04 (patch) | |
| tree | 160994c32ed11174d365f284a14b2011eec160a2 | |
| parent | 89bbb9a888fe0c1ea46192791fa0a324d909e34c (diff) | |
[macOS CI] Delete big SDKs to avoid exhausting disk space
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.
https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11488
| -rw-r--r-- | .github/workflows/macos.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 5b4121c717..646a3736f4 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -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} |
