|
8 | 8 | install-sdk: |
9 | 9 | strategy: |
10 | 10 | matrix: |
11 | | - os: ['macos-13', 'macos-14', 'macos-15'] |
| 11 | + include: |
| 12 | + - name: 'macOS 13' |
| 13 | + os: 'macos-13' |
| 14 | + ANDROID_API: 28 |
| 15 | + ANDROID_ARCH: 'x86_64' |
| 16 | + - name: 'macOS 14' |
| 17 | + os: 'macos-14' |
| 18 | + ANDROID_API: 28 |
| 19 | + ANDROID_ARCH: 'arm64-v8a' |
| 20 | + - name: 'macOS 15' |
| 21 | + os: 'macos-15' |
| 22 | + ANDROID_API: 28 |
| 23 | + ANDROID_ARCH: 'arm64-v8a' |
12 | 24 | fail-fast: false |
13 | 25 | runs-on: ${{ matrix.os }} |
| 26 | + env: |
| 27 | + ANDROID_API: ${{ matrix.ANDROID_API }} |
| 28 | + ANDROID_ARCH: ${{ matrix.ANDROID_ARCH }} |
14 | 29 | steps: |
15 | 30 | - name: "Launch emulator" |
16 | 31 | run: | |
| 32 | +
|
17 | 33 | # Install AVD files |
18 | | - echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install 'system-images;android-28;default;x86_64' |
| 34 | + echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "system-images;android-${ANDROID_API};default;${ANDROID_ARCH}" |
19 | 35 | # Create emulator |
20 | | - echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd -n test -d "Nexus 10" -k 'system-images;android-28;default;x86_64' --force |
| 36 | + echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd -f -n test -k "system-images;android-${ANDROID_API};default;${ANDROID_ARCH}" --force |
21 | 37 | echo "y" | $ANDROID_HOME/emulator/emulator -list-avds |
22 | 38 | echo "Starting emulator" |
23 | 39 | # Start emulator in background |
24 | | - nohup $ANDROID_HOME/emulator/emulator -avd test -no-snapshot -no-window -no-audio -no-boot-anim -no-accel & |
| 40 | + nohup $ANDROID_HOME/emulator/emulator -avd test -no-snapshot -no-window -no-audio -no-boot-anim -no-accel -no-metrics & |
25 | 41 | # Fixed quoting around "\r" |
26 | 42 | $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' |
27 | 43 | $ANDROID_HOME/platform-tools/adb devices |
28 | 44 | echo "Emulator started" |
29 | 45 |
|
30 | | - - name: "Check emulator" |
31 | | - run: | |
32 | | - find ${ANDROID_HOME} -name sdkmanager |
33 | | - find ${ANDROID_HOME} -name emulator |
34 | | - find ${ANDROID_HOME} -name avdmanager |
35 | | - ${ANDROID_HOME}/tools/bin/sdkmanager "tools" |
36 | | - ${ANDROID_HOME}/tools/bin/sdkmanager "platform-tools" |
37 | | - ${ANDROID_HOME}/tools/bin/sdkmanager "platforms;android-28" |
38 | | - ${ANDROID_HOME}/tools/bin/sdkmanager "system-images;android-28;default;x86" |
39 | | - ${ANDROID_HOME}/tools/bin/sdkmanager --update |
40 | | - ${ANDROID_HOME}/tools/bin/sdkmanager --licenses |
41 | | - ${ANDROID_HOME}/tools/bin/avdmanager create avd -n test -k "system-images;android-28;default;x86" -c 200M -f |
42 | | - ${ANDROID_HOME}/emulator/emulator -avd test -no-audio -no-accel -no-snapshot -no-window -camera-back none -camera-front none |
43 | 46 | - name: "Install SDK" |
44 | 47 | run: | |
45 | 48 | HOST_TOOLCHAIN_URL="https://download.swift.org/development/xcode/swift-DEVELOPMENT-SNAPSHOT-2025-08-08-a/swift-DEVELOPMENT-SNAPSHOT-2025-08-08-a-osx.pkg" |
|
0 commit comments