-
Notifications
You must be signed in to change notification settings - Fork 40
38 lines (32 loc) · 1.02 KB
/
emulate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Emulate
on:
pull_request:
push:
branches:
- main
jobs:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
android-api-level: [ 19, 21, 24, 29 ]
steps:
- name: checkout
uses: actions/checkout@v4
- 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
- uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.android-api-level }}
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew :android:connectedAndroidTest
- uses: actions/upload-artifact@v3
if: always()
with:
name: android-build-reports
path: android/build/reports/