diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 0e7009e51..edb9982a2 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -45,7 +45,7 @@ jobs: arguments: testProdDebugUnitTest ui-test: - runs-on: ubuntu-latest + runs-on: macos-latest strategy: matrix: api-level: [22, 24, 26, 28, 29, 30, 31] @@ -61,36 +61,12 @@ jobs: run: ./.github/prepare-workflow - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b - - name: Gradle cache - uses: gradle/gradle-build-action@v2 - - - name: AVD cache - uses: actions/cache@v2 - id: avd-cache - with: - path: | - ~/.android/avd/* - ~/.android/adb* - key: avd-${{ matrix.api-level }} - - - name: create AVD and generate snapshot for caching - if: steps.avd-cache.outputs.cache-hit != 'true' - uses: reactivecircus/android-emulator-runner@v2 - with: - api-level: ${{ matrix.api-level }} - arch: x86_64 - force-avd-creation: false - emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none - disable-animations: false - script: echo "Generated AVD snapshot for caching." - - name: run tests uses: reactivecircus/android-emulator-runner@v2 with: api-level: ${{ matrix.api-level }} arch: x86_64 - force-avd-creation: false - emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none + emulator-options: -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none disable-animations: true script: ./gradlew connectedProdDebugAndroidTest