Skip to content

Commit 13cd92a

Browse files
committed
Try to run the Android emulator
1 parent fd4a277 commit 13cd92a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,18 @@ jobs:
3838
echo "y" | $ANDROID_HOME/emulator/emulator -list-avds
3939
echo "Starting emulator"
4040
41-
xml_content='<?xml version="1.0" encoding="UTF-8"?>
41+
cd ${ANDROID_HOME}/emulator/qemu/darwin-aarch64/
42+
entitlements='<?xml version="1.0" encoding="UTF-8"?>
4243
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
4344
<plist version="1.0">
4445
<dict>
4546
<key>com.apple.security.hypervisor</key>
4647
<true/>
4748
</dict>
4849
</plist>'
49-
eho "$xml_content" > entitlements.xml
50-
codesign -s - --entitlements entitlements.xml --force ${ANDROID_HOME}/emulator/qemu/darwin-aarch64/qemu-system-aarch64-headless
50+
echo "$entitlements" > entitlements.xml
51+
codesign -s - --entitlements entitlements.xml --force qemu-system-aarch64-headless
52+
cd -
5153
5254
# Start emulator in background
5355
nohup $ANDROID_HOME/emulator/emulator -avd test -no-snapshot -no-window -no-audio -no-boot-anim -no-accel -no-metrics &

0 commit comments

Comments
 (0)