Skip to content

Commit

Permalink
ci: debug avd starting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jokerttu committed Feb 10, 2025
1 parent 2d6d238 commit a1f7dac
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/test-and-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:

build-android:
name: Build Android
needs: [test-dart, test-android, test-ios]
needs: [test-dart, test-android]
if: contains(github.base_ref, 'main')
timeout-minutes: 45
runs-on:
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:

build-ios:
name: Build iOS
needs: [test-dart, test-android, test-ios]
needs: [test-dart, test-ios]
if: contains(github.base_ref, 'main')
timeout-minutes: 90
runs-on:
Expand Down Expand Up @@ -283,9 +283,25 @@ jobs:
echo "List installed packages"
$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --list_installed
echo "Setting ANDROID_AVD_HOME"
export ANDROID_AVD_HOME=$HOME/.config/.android/avd
echo "ANDROID_AVD_HOME set to $ANDROID_AVD_HOME"
echo "Creating AVD"
echo "no" | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/avdmanager create avd -n test_emulator -k "system-images;android-35;google_apis;x86_64" --force
echo "Listing available AVDs"
$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/avdmanager list avd
echo "Checking AVD directory"
ls -lah $ANDROID_AVD_HOME
echo "Checking AVD files"
find $ANDROID_AVD_HOME -name "*.ini" -or -name "*.avd"
echo "List AVDs with emulator command"
$ANDROID_SDK_ROOT/emulator/emulator -list-avds
echo "Starting emulator"
$ANDROID_SDK_ROOT/emulator/emulator -avd test_emulator -no-audio -no-boot-anim -no-window -no-snapshot &
adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done; input keyevent 82'
Expand Down

0 comments on commit a1f7dac

Please sign in to comment.