Skip to content

Commit

Permalink
api version 33; x86_64, google_apis
Browse files Browse the repository at this point in the history
  • Loading branch information
leoromanovsky committed Oct 21, 2023
1 parent 5bc2cf7 commit af7ac03
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/publish-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ on:
release:
types: [published]

env:
ANDROID_API_LEVEL: 33

jobs:
lint-test-sdk:
runs-on: macos-latest
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/test-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,22 @@ on:
jobs:
test-android-sdk:
runs-on: macos-latest
env:
ANDROID_API_LEVEL: 30
strategy:
matrix:
api-level: [ 33 ]
steps:
- name: Check out Android SDK
uses: actions/checkout@v3
with:
repository: 'Eppo-exp/android-sdk'

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'

- name: 'Set up GCP SDK'
uses: 'google-github-actions/setup-gcloud@v0'

- name: Restore gradle.properties
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} #TODO: populate
Expand All @@ -47,27 +48,29 @@ jobs:
path: |
~/.android/avd/*
~/.android/adb*
key: avd
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: 30
api-level: ${{ matrix.api-level }}
profile: Nexus 6
target: google_apis
arch: x86
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 on emulator
uses: ReactiveCircus/android-emulator-runner@v2
- name: run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 30
api-level: ${{ matrix.api-level }}
profile: Nexus 6
target: google_apis
arch: x86
arch: x86_64
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: make test
script: ./gradlew connectedCheck

0 comments on commit af7ac03

Please sign in to comment.