chore: update SDK to v1.0.2-beta02 #104
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android Release | |
on: | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
instrumentation-tests: | |
name: Instrumentation tests | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: true | |
matrix: | |
api-level: [22, 26, 31] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- uses: gradle/gradle-build-action@v3 | |
continue-on-error: true | |
timeout-minutes: 5 | |
with: | |
cache-overwrite-existing: true | |
gradle-home-cache-cleanup: true | |
# API 30+ emulators only have x86_64 system images. | |
- name: Get AVD info | |
uses: ./.github/actions/get-avd-info | |
id: avd-info | |
with: | |
api-level: ${{ matrix.api-level }} | |
- name: Enable KVM | |
run: | | |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
sudo udevadm control --reload-rules | |
sudo udevadm trigger --name-match=kvm | |
- name: Instrumentation tests | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: ${{ matrix.api-level }} | |
arch: ${{ steps.avd-info.outputs.arch }} | |
target: ${{ steps.avd-info.outputs.target }} | |
script: mv sample-jetpack-compose/release.keystore ~/.android; ./gradlew connectedDebugAndroidTest |