|
21 | 21 | fail-fast: false
|
22 | 22 | matrix:
|
23 | 23 | platform:
|
24 |
| - - { target: aarch64-linux-android, arch: arm64-v8a } |
25 |
| - - { target: x86_64-linux-android, arch: x86_64 } |
| 24 | + - { |
| 25 | + target: aarch64-linux-android, |
| 26 | + avd_arch: arm64-v8a, |
| 27 | + arch: aarch64, |
| 28 | + } |
| 29 | + - { target: x86_64-linux-android, avd_arch: x86_64, arch: x86_64 } |
26 | 30 | features:
|
27 | 31 | [
|
28 | 32 | "",
|
|
31 | 35 | ]
|
32 | 36 | steps:
|
33 | 37 | - uses: actions/checkout@v4
|
34 |
| - - name: Set up JDK 17 |
35 |
| - uses: actions/setup-java@v4 |
36 |
| - with: |
37 |
| - java-version: "17" |
38 |
| - distribution: "temurin" |
39 |
| - - name: Setup Android SDK |
40 |
| - uses: android-actions/setup-android@v3 |
41 |
| - with: |
42 |
| - packages: "tools platform-tools platforms;android-33" |
43 |
| - - name: Install Android NDK |
44 |
| - uses: nttld/setup-ndk@v1 |
45 |
| - id: setup-ndk |
46 |
| - with: |
47 |
| - ndk-version: r26c |
48 | 38 | - name: Install rust
|
49 | 39 | id: toolchain
|
50 | 40 | uses: dtolnay/rust-toolchain@1.81.0
|
|
81 | 71 | uses: reactivecircus/android-emulator-runner@v2
|
82 | 72 | with:
|
83 | 73 | api-level: 30
|
84 |
| - ndk: ${{ steps.setup-ndk.outputs.ndk-full-version }} |
85 | 74 | force-avd-creation: false
|
86 |
| - arch: ${{ matrix.platform.arch }} |
| 75 | + arch: ${{ matrix.platform.avd_arch }} |
87 | 76 | emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
88 | 77 | disable-animations: false
|
89 | 78 | script: echo "Generated AVD snapshot for caching."
|
|
92 | 81 | uses: reactivecircus/android-emulator-runner@v2
|
93 | 82 | env:
|
94 | 83 | RANLIB: "${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ranlib"
|
95 |
| - ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} |
96 | 84 | with:
|
97 | 85 | api-level: 30
|
98 |
| - ndk: ${{ steps.setup-ndk.outputs.ndk-full-version }} |
99 |
| - arch: ${{ matrix.platform.arch }} |
| 86 | + arch: ${{ matrix.platform.avd_arch }} |
100 | 87 | force-avd-creation: false
|
101 | 88 | emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
102 | 89 | disable-animations: true
|
|
0 commit comments