From 761f0301640dc3f88cd9d60b2615be070177a2ee Mon Sep 17 00:00:00 2001 From: Colin White Date: Wed, 11 Sep 2024 18:27:00 -0500 Subject: [PATCH] Fix CI running out of disk space. (#2477) * Debug disk space usage. * Disable downloading sources. * Limit cache size. * Set 3 threads. * Remove old Xcode versions. * Refactor. * Change approach. * Tweak. * Change approach. * Test. * Remove Xcode 15. * Tweak. * Test. * Test. * Test. * Simplify. --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e0376e6b9..0572fb2054 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,8 @@ concurrency: env: CI: true JAVA_VERSION: 17 + ORG_GRADLE_IDE_DOWNLOADJAVADOC: false + ORG_GRADLE_IDE_DOWNLOADSOURCES: false jobs: checks: name: Checks @@ -52,6 +54,15 @@ jobs: cache-overwrite-existing: true gradle-home-cache-cleanup: true + - name: Remove unused Xcode versions + run: | + echo "Currently installed Xcode versions:" + find /Applications -name "Xcode*" -maxdepth 1 -mindepth 1 + echo "Removing all except the currently selected Xcode version..." + ls -d /Applications/Xcode* | grep -v "$(xcode-select -p | sed 's:/Contents/Developer::')" | xargs -P 3 -I {} sudo rm -rf "{}" + echo "Available Xcode versions after removal:" + find /Applications -name "Xcode*" -maxdepth 1 -mindepth 1 + - name: Unit tests run: ./gradlew allTests testDebugUnitTest validateDebugScreenshotTest verifyPaparazziDebug verifyRoborazziDebug verifyRoborazziJvm