Skip to content

Commit

Permalink
fix(ci): configure Android emulator for stable execution in macOS-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
DesarrolloAntonio committed Dec 18, 2024
1 parent 71d79f8 commit 0a72b00
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,26 @@ jobs:
run: ./gradlew testDebugUnitTest

android_tests:
runs-on: macos-latest
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Start Emulator and Run Tests
- name: Checkout code
uses: actions/checkout@v3

- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666"' | sudo tee /etc/udev/rules.d/99-kvm.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Run Android Emulator
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
arch: arm64-v8a
target: google_apis
force-avd-creation: true
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim
script: ./gradlew connectedDebugAndroidTest
target: default
arch: x86_64
profile: Nexus 6
emulator-options: -no-snapshot -no-window -gpu swiftshader_indirect
script: ./gradlew connectedCheck

build_and_release:
if: github.ref == 'refs/heads/master'
Expand Down

0 comments on commit 0a72b00

Please sign in to comment.