|
9 | 9 | strategy: |
10 | 10 | matrix: |
11 | 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' |
| 12 | + - name: 'macOS 26' |
| 13 | + os: 'macos-26' |
18 | 14 | ANDROID_API: 28 |
19 | 15 | ANDROID_ARCH: 'arm64-v8a' |
| 16 | + ANDROID_GPU: 'swiftshader_indirect' |
20 | 17 | - name: 'macOS 15' |
21 | 18 | os: 'macos-15' |
22 | 19 | ANDROID_API: 28 |
23 | 20 | ANDROID_ARCH: 'arm64-v8a' |
24 | | - #- name: 'macOS 26' |
25 | | - # os: 'macos-26' |
26 | | - # ANDROID_API: 28 |
27 | | - # ANDROID_ARCH: 'arm64-v8a' |
| 21 | + ANDROID_GPU: 'swiftshader_indirect' |
| 22 | + - name: 'macOS 14' |
| 23 | + os: 'macos-14' |
| 24 | + ANDROID_API: 28 |
| 25 | + ANDROID_ARCH: 'arm64-v8a' |
| 26 | + ANDROID_GPU: 'swiftshader_indirect' |
| 27 | + - name: 'macOS 13' |
| 28 | + os: 'macos-13' |
| 29 | + ANDROID_API: 28 |
| 30 | + ANDROID_ARCH: 'x86_64' |
| 31 | + ANDROID_GPU: 'swiftshader_indirect' |
28 | 32 | - name: 'Ubuntu Latest' |
29 | 33 | os: 'ubuntu-latest' |
30 | 34 | ANDROID_API: 28 |
31 | 35 | ANDROID_ARCH: 'x86_64' |
| 36 | + ANDROID_GPU: 'none' |
32 | 37 | fail-fast: false |
33 | 38 | runs-on: ${{ matrix.os }} |
34 | 39 | env: |
35 | 40 | ANDROID_API: ${{ matrix.ANDROID_API }} |
36 | 41 | ANDROID_ARCH: ${{ matrix.ANDROID_ARCH }} |
| 42 | + ANDROID_GPU: ${{ matrix.ANDROID_GPU }} |
| 43 | + #ANDROID_BUILD_TOOLS_VERSION: 36.0.0 |
| 44 | + ANDROID_BUILD_TOOLS_VERSION: 'latest' |
37 | 45 | steps: |
| 46 | + - name: "Setup Environment" |
| 47 | + run: | |
| 48 | + 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 |
| 49 | +
|
38 | 50 | - name: "Launch emulator" |
39 | 51 | timeout-minutes: 10 |
40 | 52 | run: | |
| 53 | + yes Y | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses |
| 54 | +
|
41 | 55 | # Install AVD files |
42 | 56 | echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "system-images;android-${ANDROID_API};default;${ANDROID_ARCH}" |
43 | 57 | # Create emulator |
|
46 | 60 | echo "Starting emulator" |
47 | 61 | |
48 | 62 | # Start emulator in background |
49 | | - nohup $ANDROID_HOME/emulator/emulator -avd test -no-snapshot -no-window -no-audio -no-boot-anim -no-accel -no-metrics & |
| 63 | + nohup $ANDROID_HOME/emulator/emulator -avd test -no-snapshot -no-window -no-audio -no-boot-anim -no-accel -no-metrics -camera-back none -accel off -gpu ${ANDROID_GPU} & |
50 | 64 | # Fixed quoting around "\r" |
51 | 65 | $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' |
52 | 66 | $ANDROID_HOME/platform-tools/adb devices |
|
0 commit comments