Skip to content

Commit 078c7ba

Browse files
committed
Replace emulator starter
1 parent e5eb262 commit 078c7ba

File tree

1 file changed

+17
-2
lines changed
  • .github/composite_actions/launch_android_emulator

1 file changed

+17
-2
lines changed

.github/composite_actions/launch_android_emulator/action.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,25 @@ inputs:
99
default: google_apis
1010
abi:
1111
description: "ABI of the Android system image - x86, x86_64 or arm64-v8a. Defaults to the host architecture."
12+
default: "x86_64"
1213
# TODO(dnys1): Can this be removed so we can use a separate step?
1314
script:
1415
required: true
1516
description: The script to run once the emulator is booted.
1617
runs:
17-
using: "node16"
18-
main: "dist/index.mjs"
18+
using: "composite"
19+
steps:
20+
- name: Enable KVM group permissions
21+
shell: bash
22+
run: |
23+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
24+
sudo udevadm control --reload-rules
25+
sudo udevadm trigger --name-match=kvm
26+
27+
- name: Run Android Emulator
28+
uses: reactivecircus/android-emulator-runner@v2
29+
with:
30+
api-level: ${{ inputs.api-level }}
31+
target: ${{ inputs.target }}
32+
arch: ${{ inputs.abi }}
33+
script: ${{ inputs.script }}

0 commit comments

Comments
 (0)