44 workflow_call :
55
66env :
7- DEVICE_API_LEVEL : ' 35 '
7+ DEVICE_API_LEVEL : ' 34 '
88 DEVICE_ARCH : ' x86_64'
9- DEVICE_PROFILE : ' pixel_7 '
10- AVD_NAME : ' Pixel_8_API_35 '
9+ DEVICE_TARGET : ' google_apis '
10+ AVD_NAME : ' Pixel_API_34 '
1111
1212jobs :
1313 test-android-harness :
3838 name : android-apk
3939 path : example/android/app/build/outputs/apk/debug/
4040
41+ - name : Enable KVM
42+ run : |
43+ echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
44+ sudo udevadm control --reload-rules
45+ sudo udevadm trigger --name-match=kvm
46+
4147 - name : AVD cache
4248 uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
4349 id : avd-cache
@@ -52,26 +58,29 @@ jobs:
5258 uses : reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b
5359 with :
5460 api-level : ${{ env.DEVICE_API_LEVEL }}
61+ target : ${{ env.DEVICE_TARGET }}
5562 arch : ${{ env.DEVICE_ARCH }}
56- profile : ${{ env.DEVICE_PROFILE }}
57- disk-size : 1G
58- heap-size : 1G
63+ ram-size : 4096M
64+ disk-size : 6G
5965 force-avd-creation : false
6066 avd-name : ${{ env.AVD_NAME }}
6167 disable-animations : true
62- emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
68+ emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -memory 4096
6369 script : echo "Generated AVD snapshot for caching."
6470
6571 - name : Run Harness E2E tests
6672 uses : reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b
6773 with :
6874 working-directory : example
6975 api-level : ${{ env.DEVICE_API_LEVEL }}
76+ target : ${{ env.DEVICE_TARGET }}
7077 arch : ${{ env.DEVICE_ARCH }}
78+ ram-size : 4096M
7179 force-avd-creation : false
7280 avd-name : ${{ env.AVD_NAME }}
7381 disable-animations : true
74- emulator-options : -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
82+ emulator-boot-timeout : 900
83+ emulator-options : -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -memory 4096
7584 script : |
7685 adb install -r "./android/app/build/outputs/apk/debug/app-debug.apk"
7786 yarn harness:android
0 commit comments