Skip to content

Commit

Permalink
Merge pull request #30 from rubensousa/tv_emulator
Browse files Browse the repository at this point in the history
Align PR config
  • Loading branch information
rubensousa authored Sep 17, 2024
2 parents 79f3570 + 6e4c589 commit 43a443d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
strategy:
fail-fast: false
matrix:
arch: [x86_64]
arch: [x86_64, x86]
target: [ google_apis, android-tv ]
api-level: [34]
profile: [pixel_6, tv_1080p]
Expand All @@ -52,6 +52,10 @@ jobs:
profile: tv_1080p
- target: android-tv
profile: pixel_6
- arch: x86
profile: pixel_6
- arch: x86_64
profile: tv_1080p
steps:
- name: checkout
uses: actions/checkout@v4
Expand All @@ -72,8 +76,10 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Compile instrumented tests
run: ./gradlew --build-cache assembleDebugAndroidTest
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
android: false

# Retrieve the cached emulator snapshot.
- name: AVD cache
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,31 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
android: false

# Retrieve the cached emulator snapshot.
- name: AVD cache
uses: actions/cache@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}-${{ matrix.profile }}

- name: Create AVD snapshot
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
arch: ${{ matrix.arch }}
profile: ${{ matrix.profile }}
disable-animations: false
force-avd-creation: true
force-avd-creation: false
ram-size: 4096M
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
script: echo "Generated AVD snapshot."
Expand Down

0 comments on commit 43a443d

Please sign in to comment.