Skip to content

Commit

Permalink
build: hack to free up space on macos runner
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kmoe committed Sep 9, 2024
1 parent 254aca1 commit 39b1f0c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/nightly-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39b1f0c

Please sign in to comment.