Skip to content

Commit 0d3e4ea

Browse files
committed
Try to run the Android emulator
1 parent 9354cec commit 0d3e4ea

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,16 @@ jobs:
1515
- name: "Launch emulator"
1616
run: |
1717
# Install AVD files
18-
echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install 'system-images;android-35;google_apis;x86_64'
19-
18+
echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install 'system-images;android-28;default;armeabi-v7a'
2019
# Create emulator
21-
echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd -n xamarin_android_emulator -d "Nexus 10" -k 'system-images;android-35;google_apis;x86_64' --force
22-
20+
echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd -n test -d "Nexus 10" -k 'system-images;android-28;default;armeabi-v7a' --force
2321
echo "y" | $ANDROID_HOME/emulator/emulator -list-avds
24-
2522
echo "Starting emulator"
26-
2723
# Start emulator in background
28-
nohup $ANDROID_HOME/emulator/emulator -avd xamarin_android_emulator -no-snapshot -no-window -no-audio -no-boot-anim -accel on > /dev/null 2>&1 &
24+
nohup $ANDROID_HOME/emulator/emulator -avd test -no-snapshot -no-window -no-audio -no-boot-anim -no-accel &
2925
# Fixed quoting around "\r"
3026
$ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d "\r") ]]; do sleep 1; done; input keyevent 82'
31-
3227
$ANDROID_HOME/platform-tools/adb devices
33-
3428
echo "Emulator started"
3529
3630
- name: "Check emulator"

0 commit comments

Comments
 (0)