From 9e7264f047fc1ab702d1508467106f4484d3923a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulises=20Gasc=C3=B3n?= Date: Thu, 12 Sep 2024 20:03:59 +0200 Subject: [PATCH] ci: reclaim disk space on macOS GHA runner - Ref: https://github.com/nodejs/node/pull/54658 - Ref: https://github.com/nodejs/build/issues/3878 --- .github/workflows/test-macos.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test-macos.yml b/.github/workflows/test-macos.yml index 06549a9e3b..06fbc15103 100644 --- a/.github/workflows/test-macos.yml +++ b/.github/workflows/test-macos.yml @@ -65,6 +65,18 @@ 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