build: reclaim disk space on macOS GHA runner

Refs: https://github.com/nodejs/build/issues/3878
PR-URL: https://github.com/nodejs/node/pull/54658
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
pull/54655/head
jakecastelli 2024-08-31 02:51:09 +09:30 committed by GitHub
parent 3b0617dd19
commit d75e253c50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 0 deletions

View File

@ -65,6 +65,20 @@ jobs:
# information.)
- name: tools/doc/node_modules workaround
run: make tools/doc/node_modules
# This is needed due to https://github.com/nodejs/build/issues/3878
- name: Cleanup
run: |
echo "::group::Free space before cleanup"
df -h
echo "::endgroup::"
echo "::group::Cleaned Files"
sudo rm -rfv /Users/runner/Library/Android/sdk
echo "::endgroup::"
echo "::group::Free space after cleanup"
df -h
echo "::endgroup::"
- name: Build
run: make build-ci -j$(getconf _NPROCESSORS_ONLN) V=1 CONFIG_FLAGS="--error-on-warn"
- name: Test