diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2022-08-21 17:31:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-21 17:31:57 +0200 |
commit | 7042b8d61613136f44a65c72950b9ad2b3afb284 (patch) | |
tree | c6030fe83fe049cc8319315abd12d85764210e9b /.github/workflows/checks.yml | |
parent | 6e199de7ab6ba6d31f6cc0db97ccf9ab3a73c532 (diff) | |
download | AntennaPod-7042b8d61613136f44a65c72950b9ad2b3afb284.zip |
Use atd emulator image (#6032)
Diffstat (limited to '.github/workflows/checks.yml')
-rw-r--r-- | .github/workflows/checks.yml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 749e2f812..96de69a1f 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -110,7 +110,7 @@ jobs: runs-on: macOS-latest timeout-minutes: 45 env: - api-level: 27 + api-level: 30 steps: - uses: actions/checkout@v3 - name: Set up JDK 11 @@ -118,8 +118,6 @@ jobs: with: distribution: 'temurin' java-version: '11' - - name: Build with Gradle - run: ./gradlew assemblePlayDebugAndroidTest - name: Cache Gradle uses: actions/cache@v3 with: @@ -127,6 +125,8 @@ jobs: ~/.gradle/caches ~/.gradle/wrapper key: gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} + - name: Build with Gradle + run: ./gradlew assemblePlayDebugAndroidTest - name: Cache AVD uses: actions/cache@v3 id: avd-cache @@ -134,20 +134,24 @@ jobs: path: | ~/.android/avd/* ~/.android/adb* - key: avd-${{ env.api-level }} + key: avd-${{ hashFiles('.github/workflows/*') }} - 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: ${{ env.api-level }} + target: aosp_atd + channel: canary force-avd-creation: false emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none - disable-animations: false + disable-animations: true script: echo "Generated AVD snapshot for caching." - name: Android Emulator test uses: reactivecircus/android-emulator-runner@v2 with: api-level: ${{ env.api-level }} + target: aosp_atd + channel: canary force-avd-creation: false emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none disable-animations: true |