Skip to content

Commit 57b1e54

Browse files
authored
Merge pull request #2812 from fermyon/clear-room-macos-ci
Delete some unused stuff on macOS runner to avoid out of storage errors
2 parents ba32722 + 4e84a0c commit 57b1e54

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,22 @@ jobs:
163163
rust-cache: true
164164
nomad: true
165165

166+
- name: Check disk space (Before)
167+
run: df -h /
168+
169+
# Clear space on macOS runner which is prone to running out of space
170+
- name: Free disk space
171+
run: |
172+
sudo rm -rf ~/.dotnet
173+
sudo rm -rf /Library/Android
174+
sudo rm -rf /Library/Developer/CoreSimulator
175+
find /Applications -name "Xcode_*" -maxdepth 1 -mindepth 1 | xargs rm -rf
176+
continue-on-error: true
177+
if: ${{ matrix.runner == 'macos-14' }}
178+
179+
- name: Check disk space (After)
180+
run: df -h /
181+
166182
- name: Run Unit Tests
167183
run: |
168184
make test-unit

0 commit comments

Comments
 (0)