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