From 39b1f0cd9e128e02f998e8d5ebf3ac1765cda86a Mon Sep 17 00:00:00 2001 From: Katy Moe Date: Mon, 9 Sep 2024 15:31:19 +0100 Subject: [PATCH] build: hack to free up space on macos runner The macOS runner needs a good amount of free space to build Vault during the E2E tests. Make space by deleting Xcode, which we don't use. --- .github/workflows/nightly-tests.yaml | 7 +++++++ .github/workflows/test.yml | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/nightly-tests.yaml b/.github/workflows/nightly-tests.yaml index aaf62a3..ecb5834 100644 --- a/.github/workflows/nightly-tests.yaml +++ b/.github/workflows/nightly-tests.yaml @@ -42,6 +42,13 @@ jobs: - ${{ needs.resolve-versions.outputs.oldstable }} - ${{ needs.resolve-versions.outputs.stable }} steps: + - name: Free up space on macOS runner + if: ${{ matrix.os == 'macos-latest' }} + run: | + df -hI /dev/disk3s1s1 + sudo rm -rf /Applications/Xcode* + df -hI /dev/disk3s1s1 + - name: Check out code uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 08f33b7..720a580 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -96,6 +96,12 @@ jobs: - ${{ needs.resolve-versions.outputs.oldstable }} - ${{ needs.resolve-versions.outputs.stable }} steps: + - name: Free up space on macOS runner + if: ${{ matrix.os == 'macos-latest' }} + run: | + df -hI /dev/disk3s1s1 + sudo rm -rf /Applications/Xcode* + df -hI /dev/disk3s1s1 - name: Set up Go uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2