Skip to content

Commit

Permalink
try api30
Browse files Browse the repository at this point in the history
  • Loading branch information
gmaclennan committed Nov 15, 2024
1 parent a6e84b7 commit 8c464a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/maestro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,29 +70,30 @@ jobs:

- name: Install SDK Tools
run: |
sdkmanager 'system-images;android-28;google_apis;arm64-v8a' 'tools'
sdkmanager 'system-images;android-30;google_atd;arm64-v8a' 'tools'
bash -c 'yes || true' | sdkmanager --licenses
shell: bash

- name: Create virtual device
run: |
pwd
echo no | avdmanager create avd --force --name emu --device "pixel_8" -k 'system-images;android-28;google_apis;arm64-v8a'
echo no | avdmanager create avd --force --name emu --device "pixel_8" -k 'system-images;android-30;google_atd;arm64-v8a'
avdmanager list avd
ls -al $ANDROID_EMULATOR_HOME
echo "Emulator version:"
$ANDROID_HOME/emulator/emulator @emu -version
shell: bash

- name: Start emulator
timeout-minutes: 10
timeout-minutes: 5
run: |
adb devices
nohup $ANDROID_HOME/emulator/emulator -avd emu -cores 2 -no-window -gpu swiftshader_indirect -memory 2048 -ports 5554,5555 -no-snapshot -show-kernel -noaudio -no-boot-anim -accel off -camera-back emulated -qemu -cpu max -machine gic-version=2 &
nohup $ANDROID_HOME/emulator/emulator -avd emu -cores 2 -no-window -gpu swiftshader_indirect -memory 2048 -skip-adb-auth -ports 5554,5555 -no-snapshot -show-kernel -noaudio -no-boot-anim -logcat -logcat-output "logcat.log" -accel off -camera-back emulated -qemu -cpu max -machine gic-version=2 &
echo "Emulator started"
shell: bash

- name: Wait for emulator to boot
timeout-minutes: 5
run: ./scripts/wait-for-emulator.sh

- name: Install APK
Expand All @@ -115,7 +116,7 @@ jobs:
- name: Emulator logs
if: always()
run: |
cat nohup.out
cat logcat.log
shell: bash

- name: Upload Maestro test artifacts
Expand Down
4 changes: 2 additions & 2 deletions scripts/wait-for-emulator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ check_emulator_status
sleep 1
disable_animation
sleep 1
hidden_policy
sleep 1
# hidden_policy
# sleep 1

0 comments on commit 8c464a2

Please sign in to comment.