Skip to content

Commit 30623b0

Browse files
committed
Test emulator options
1 parent 186623c commit 30623b0

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/flix_sample.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
distribution: "temurin"
6565
java-version: 21
6666

67-
- name: Test Action
67+
- name: Create AVD
6868
id: test-action-1
6969
uses: ndtp/android-avd-manager-action@main
7070
with:
@@ -74,22 +74,27 @@ jobs:
7474
arch: x86_64
7575
profile: pixel_3a
7676

77-
- name: Enable KVM group perms
77+
- name: Enable kernel-based virtual machine (KVM)
7878
uses: ndtp/enable-kvm-action@v1
7979

80-
- name: Test Action
80+
- name: Launch and configure emulator
8181
id: test-action-2
8282
uses: ndtp/android-emulator-runner@main
8383
with:
8484
avd-name: baz
85+
emulator-options: -camera-back emulated -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim
86+
emulator-boot-timeout: 120
8587
enable-hw-keyboard: true
8688
disable-spellchecker: true
8789
verbose: true
8890

89-
- name: Print Output
91+
- name: Test Emulator
9092
id: output
9193
run: adb devices
9294

95+
- name: Kill Emulator
96+
run: adb -s emulator-5554 emu kill
97+
9398

9499
# - name: Download app apk
95100
# uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)