Skip to content

Commit 6daf5b7

Browse files
committed
Try setup-skip action
1 parent da3f4e2 commit 6daf5b7

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
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
@@ -76,7 +77,23 @@ jobs:
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!'

0 commit comments

Comments
 (0)