diff --git a/.github/workflows/gradle_connected-tests.yml b/.github/workflows/gradle_connected-tests.yml index 23604fd7..6ab4d4b4 100644 --- a/.github/workflows/gradle_connected-tests.yml +++ b/.github/workflows/gradle_connected-tests.yml @@ -26,6 +26,19 @@ jobs: api-level: [ 28 ] steps: + # From https://github.com/android/nowinandroid/pull/1219/files to fix flaky emulator start + # See https://github.com/ReactiveCircus/android-emulator-runner/issues/324#issuecomment-1998737488 + - name: Delete unnecessary tools 🔧 + uses: jlumbroso/free-disk-space@v1.3.1 + with: + android: false # Keep Don't remove Android tools + tool-cache: true # Remove image tool cache - rm -rf "$AGENT_TOOLSDIRECTORY" + dotnet: true # rm -rf /usr/share/dotnet + haskell: true # rm -rf /opt/ghc... + swap-storage: true # rm -f /mnt/swapfile (4GiB) + docker-images: false # Takes 16s (`nowinandroid`), enable if needed in the future + large-packages: false # includes google-cloud-sdk and it's slow + - name: Checkout commit uses: actions/checkout@v3