Skip to content

Commit 71ca266

Browse files
jakecastellitargos
authored andcommitted
build: reclaim disk space on macOS GHA runner
Refs: nodejs/build#3878 PR-URL: #54658 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent ed2377c commit 71ca266

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/test-macos.yml

+14
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,20 @@ jobs:
6565
# information.)
6666
- name: tools/doc/node_modules workaround
6767
run: make tools/doc/node_modules
68+
# This is needed due to https://github.com/nodejs/build/issues/3878
69+
- name: Cleanup
70+
run: |
71+
echo "::group::Free space before cleanup"
72+
df -h
73+
echo "::endgroup::"
74+
echo "::group::Cleaned Files"
75+
76+
sudo rm -rfv /Users/runner/Library/Android/sdk
77+
78+
echo "::endgroup::"
79+
echo "::group::Free space after cleanup"
80+
df -h
81+
echo "::endgroup::"
6882
- name: Build
6983
run: make build-ci -j$(getconf _NPROCESSORS_ONLN) V=1 CONFIG_FLAGS="--error-on-warn"
7084
- name: Test

0 commit comments

Comments
 (0)