Skip to content

Commit

Permalink
Manually free up disk space on macOS (#4287)
Browse files Browse the repository at this point in the history
This should mitigate the effects of a GitHub regression that reduced
space on these runners:
actions/runner-images#10511

After this, we're mostly fine, but builds that happen to compile enough
of the codebase can bump past it. With this PR we have over 50 GiB of
space which is more than we need.

See a test run here:
https://github.com/carbon-language/carbon-lang/actions/runs/10780743574
  • Loading branch information
chandlerc authored Sep 9, 2024
1 parent a4fe9be commit f641cb9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/actions/build-setup-macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ inputs:
runs:
using: composite
steps:
# Free up disk space as the macOS runners end up using most for Xcode
# versions we don't need and iOS simulators.
- name: Free up disk space
shell: bash
run: |
echo '*** Delete iOS simulators'
xcrun simctl delete all
sudo rm -rf ~/Library/Developer/CoreSimulator/Caches/*
# Install and cache LLVM 16 from Homebrew.
# TODO: We can potentially remove this and simplify things when the
# Homebrew version of LLVM updates to 16 here:
Expand Down

0 comments on commit f641cb9

Please sign in to comment.