Skip to content

Commit

Permalink
Merge pull request #245 from hashicorp/kmoe/macos-runner-free-up-space
Browse files Browse the repository at this point in the history
Nightly and PR builds: fix "no space left on device" on macOS runner
  • Loading branch information
kmoe authored Sep 9, 2024
2 parents 254aca1 + 39b1f0c commit 4e5aafc
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 4e5aafc

Please sign in to comment.