From 4e84a0c2f298ccd67bea36aacfd69e9ee6528f01 Mon Sep 17 00:00:00 2001 From: Ryan Levick Date: Mon, 9 Sep 2024 11:49:11 +0200 Subject: [PATCH] Delete some unused stuff on macOS runner to avoid out of storage errors Signed-off-by: Ryan Levick --- .github/workflows/build.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7ff739ea14..27e9b135c9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -163,6 +163,22 @@ jobs: rust-cache: true nomad: true + - name: Check disk space (Before) + run: df -h / + + # Clear space on macOS runner which is prone to running out of space + - name: Free disk space + run: | + sudo rm -rf ~/.dotnet + sudo rm -rf /Library/Android + sudo rm -rf /Library/Developer/CoreSimulator + find /Applications -name "Xcode_*" -maxdepth 1 -mindepth 1 | xargs rm -rf + continue-on-error: true + if: ${{ matrix.runner == 'macos-14' }} + + - name: Check disk space (After) + run: df -h / + - name: Run Unit Tests run: | make test-unit