Skip to content

Commit

Permalink
Fix CI running out of disk space. (#2477)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
colinrtwhite authored Sep 11, 2024
1 parent c474929 commit 761f030
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 761f030

Please sign in to comment.