@@ -65,6 +65,11 @@ inputs:
6565 description : ' Android API level to use (e.g. "34")'
6666 required : false
6767 default : ' 34'
68+ android-abi :
69+ description : ' System architecture ABI for the Android system image (e.g. x86_64, arm64-v8a, armeabi-v7a)'
70+ required : false
71+ default : ' arm64-v8a'
72+
6873
6974runs :
7075 using : ' composite'
@@ -238,10 +243,10 @@ runs:
238243 echo "Installing Android SDK components..."
239244 "${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager" --install \
240245 "platform-tools" \
241- "platforms;android-34 " \
246+ "platforms;android-${{ inputs.android-api-level }} " \
242247 "build-tools;34.0.0" \
243248 "emulator" \
244- "system-images;android-34;google_apis;x86_64"
249+ "system-images;android-34;google_apis;${{ inputs.android-abi }}" \
245250
246251 echo "Updating SDK packages..."
247252 "${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager" --update
@@ -271,7 +276,7 @@ runs:
271276 "platforms;android-${{ inputs.android-api-level }}" \
272277 "build-tools;34.0.0" \
273278 "emulator" \
274- "system-images;android-${{ inputs.android-api-level }};google_apis;x86_64 "
279+ "system-images;android-${{ inputs.android-api-level }};google_apis;${{ inputs.android-abi }} "
275280 shell : bash
276281
277282 - name : Install Android NDK
@@ -303,7 +308,7 @@ runs:
303308 - name : Install Android system image
304309 if : ${{ inputs.platform == 'android' && inputs.setup-simulator == 'true' }}
305310 run : |
306- IMAGE="system-images;android-${{ inputs.android-api-level }};google_apis;x86_64 "
311+ IMAGE="system-images;android-${{ inputs.android-api-level }};google_apis;${{ inputs.android-abi }} "
307312 echo "Installing system image: $IMAGE"
308313 "${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager" --install "$IMAGE"
309314 shell : bash
@@ -318,7 +323,7 @@ runs:
318323 - name : Create Android Virtual Device (AVD)
319324 if : ${{ inputs.platform == 'android' && inputs.setup-simulator == 'true' }}
320325 run : |
321- IMAGE="system-images;android-${{ inputs.android-api-level }};google_apis;x86_64 "
326+ IMAGE="system-images;android-${{ inputs.android-api-level }};google_apis;${{ inputs.android-abi }} "
322327 echo "Creating AVD with image: $IMAGE"
323328 echo "no" | "${ANDROID_HOME}/cmdline-tools/latest/bin/avdmanager" create avd \
324329 --name "${{ inputs.android-avd-name }}" \
0 commit comments