Skip to content

Commit c542649

Browse files
jakecastellisantigimeno
authored andcommitted
build: reclaim disk space on macOS GHA runner
Refs: nodejs/build#3878 PR-URL: nodejs/node#54658 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> PR-URL: #182 Refs: nodejs/node#54658 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
1 parent 0528592 commit c542649

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/test-macos.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,20 @@ jobs:
5757
# information.)
5858
- name: tools/doc/node_modules workaround
5959
run: make tools/doc/node_modules
60+
# This is needed due to https://github.com/nodejs/build/issues/3878
61+
- name: Cleanup
62+
run: |
63+
echo "::group::Free space before cleanup"
64+
df -h
65+
echo "::endgroup::"
66+
echo "::group::Cleaned Files"
67+
68+
sudo rm -rfv /Users/runner/Library/Android/sdk
69+
70+
echo "::endgroup::"
71+
echo "::group::Free space after cleanup"
72+
df -h
73+
echo "::endgroup::"
6074
- name: Build
6175
run: make build-ci -j$(getconf _NPROCESSORS_ONLN) V=1 CONFIG_FLAGS="--error-on-warn"
6276
- name: Test

0 commit comments

Comments
 (0)