diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4408beead..d4227f58c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -157,6 +157,14 @@ jobs: sudo rm -rf /usr/share/swift # du -sh /usr/*/* 2>/dev/null | sort -h || true + - name: Free up space on macOS + if: ${{ matrix.environment == 'macos-latest' }} + run: | + # https://github.com/actions/runner-images/issues/2840#issuecomment-2334584217 + ls /Applications + find /Applications -name 'Xcode*' | sort | head -n1 | xargs rm -rf + # du -sh /*/* 2>/dev/null | sort -h || true + - name: Test run: | if [[ '${{ matrix.package }}' =~ ^cargo-dylint ]]; then