|
|
@ -82,14 +82,14 @@ jobs:
|
|
|
|
- name: Setup Gradle
|
|
|
|
- name: Setup Gradle
|
|
|
|
uses: gradle/gradle-build-action@v2
|
|
|
|
uses: gradle/gradle-build-action@v2
|
|
|
|
|
|
|
|
|
|
|
|
- name: AVD cache
|
|
|
|
# Retrieve the cached emulator snapshot.
|
|
|
|
uses: actions/cache@v3
|
|
|
|
- uses: actions/cache@v3
|
|
|
|
id: avd-cache
|
|
|
|
id: avd-cache
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
path: |
|
|
|
|
~/.android/avd/*
|
|
|
|
~/.android/avd/*
|
|
|
|
~/.android/adb*
|
|
|
|
~/.android/adb*
|
|
|
|
key: avd-${{ matrix.api-level }}
|
|
|
|
key: ${{ runner.os }}-avd-${{ env.CACHE_VERSION }}-${{ steps.avd-info.outputs.arch }}-${{ steps.avd-info.outputs.target }}-${{ matrix.api-level }}
|
|
|
|
|
|
|
|
|
|
|
|
- name: create AVD and generate snapshot for caching
|
|
|
|
- name: create AVD and generate snapshot for caching
|
|
|
|
if: steps.avd-cache.outputs.cache-hit != 'true'
|
|
|
|
if: steps.avd-cache.outputs.cache-hit != 'true'
|
|
|
@ -99,8 +99,8 @@ jobs:
|
|
|
|
arch: ${{ matrix.arch }}
|
|
|
|
arch: ${{ matrix.arch }}
|
|
|
|
force-avd-creation: false
|
|
|
|
force-avd-creation: false
|
|
|
|
disable-animations: false
|
|
|
|
disable-animations: false
|
|
|
|
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
|
|
|
ram-size: 4096M
|
|
|
|
sdcard-path-or-size: 100M
|
|
|
|
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -no-snapshot-save
|
|
|
|
script: echo "Generated AVD snapshot for caching."
|
|
|
|
script: echo "Generated AVD snapshot for caching."
|
|
|
|
|
|
|
|
|
|
|
|
- name: Run instrumentation tests
|
|
|
|
- name: Run instrumentation tests
|
|
|
@ -109,9 +109,9 @@ jobs:
|
|
|
|
api-level: ${{ matrix.api-level }}
|
|
|
|
api-level: ${{ matrix.api-level }}
|
|
|
|
arch: x86_64
|
|
|
|
arch: x86_64
|
|
|
|
disable-animations: true
|
|
|
|
disable-animations: true
|
|
|
|
disk-size: 1500M
|
|
|
|
|
|
|
|
heap-size: 512M
|
|
|
|
|
|
|
|
force-avd-creation: false
|
|
|
|
force-avd-creation: false
|
|
|
|
|
|
|
|
ram-size: 4096M
|
|
|
|
|
|
|
|
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -no-snapshot-save
|
|
|
|
script: ./gradlew connectedProdDebugAndroidTest -x :benchmark:connectedProdBenchmarkAndroidTest --stacktrace
|
|
|
|
script: ./gradlew connectedProdDebugAndroidTest -x :benchmark:connectedProdBenchmarkAndroidTest --stacktrace
|
|
|
|
|
|
|
|
|
|
|
|
- name: Upload test reports
|
|
|
|
- name: Upload test reports
|
|
|
|