Skip to content

Commit

Permalink
ci: Add AVD Cache step (#324)
Browse files Browse the repository at this point in the history
* ci: Add AVD Cache step

* Update build.yml
  • Loading branch information
ShootingKing-AM authored Apr 14, 2024
1 parent 6635eb7 commit a853534
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,14 +227,14 @@ jobs:
build-root-directory: ${{env.GRADLE_DIR}}
cache-read-only: ${{ false }}

# - name: AVD cache
# uses: actions/cache@v3
# id: avd-cache
# with:
# path: |
# ~/.android/avd/*
# ~/.android/adb*
# key: avd-${{ matrix.api-level }}
- name: AVD cache
uses: actions/cache@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}-${{ env.EMU_TARGET }}-${{ env.EMU_PROFILE }}-${{ env.EMU_AVD_NAME }}

# Create AVD with some redundancy - 3 Checks
- name: create AVD and generate snapshot for caching
Expand Down Expand Up @@ -351,6 +351,9 @@ jobs:
emulator-boot-timeout: ${{ env.EMU_TIMEOUT }}
script: |
adb shell settings put secure immersive_mode_confirmations confirmed
adb uninstall viritualisres.phonevr.test
adb uninstall viritualisres.phonevr
adb shell "logcat -b all -v color" &
./gradlew connectedCheck --warning-mode=all --stacktrace -Dorg.gradle.java.home=${{env.JAVA_HOME}}
# adb logcat -b all > logcat.log
Expand All @@ -374,6 +377,9 @@ jobs:
emulator-boot-timeout: ${{ env.EMU_TIMEOUT }}
script: |
adb shell settings put secure immersive_mode_confirmations confirmed
adb uninstall viritualisres.phonevr.test
adb uninstall viritualisres.phonevr
adb shell "logcat -b all -v color" &
./gradlew connectedCheck --warning-mode=all --stacktrace -Dorg.gradle.java.home=${{env.JAVA_HOME}}
# adb logcat -b all > logcat.log
Expand All @@ -397,6 +403,9 @@ jobs:
emulator-boot-timeout: ${{ env.EMU_TIMEOUT }}
script: |
adb shell settings put secure immersive_mode_confirmations confirmed
adb uninstall viritualisres.phonevr.test
adb uninstall viritualisres.phonevr
adb shell "logcat -b all -v color" &
./gradlew connectedCheck --warning-mode=all --stacktrace -Dorg.gradle.java.home=${{env.JAVA_HOME}}
# adb logcat -b all > logcat.log
Expand Down

0 comments on commit a853534

Please sign in to comment.