File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 5252 echo "$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools/${{ env.ANDROID_BUILD_TOOLS_VERSION }}" >> $GITHUB_PATH
5353
5454 - name : " Launch emulator"
55+ if : false
5556 timeout-minutes : 10
5657 run : |
5758 yes Y | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses 2>&1 >> /dev/null
7677
7778 adb devices
7879 echo "Emulator started"
79-
80+
81+ - name : SKDs - download required images
82+ run : $ANDROID_HOME/tools/bin/sdkmanager "system-images;android-30;default;x86_64"
83+
84+ - name : SDKs - accept licenses
85+ run : y | $ANDROID_HOME/tools/bin/sdkmanager --licenses
86+
87+ - name : Emulator - Create
88+ run : $ANDROID_HOME/tools/bin/avdmanager create avd -n Pixel_API_30 --device 'Nexus 5X' --package "system-images;android-30;default;x86_64" --sdcard 512M
89+
90+ - name : Emulator - Boot
91+ run : $ANDROID_HOME/emulator/emulator -memory 4096 -avd Pixel_API_30 -wipe-data -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim &
92+
93+ - name : ADB Wait For Device
94+ run : adb wait-for-any-device
95+ timeout-minutes : 3
96+
8097 - name : " Check Emulator"
8198 run : |
8299 adb shell 'echo Hello Android!'
You can’t perform that action at this time.
0 commit comments