Skip to content

Commit 2fcd91d

Browse files
committed
Add android-emulator-arch option
1 parent 5fd7f41 commit 2fcd91d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ for the [Swift Algorithms](https://github.com/skiptools/swift-algorithms) packag
7373
android-emulator-options:
7474
description: 'Options to pass to the Android emulator'
7575
default: '-no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim'
76+
android-emulator-arch:
77+
description: 'Architecture for the Android emulator (x86_64 or arm64-v8)'
78+
required: true
79+
default: 'x86_64'
7680
android-emulator-boot-timeout:
7781
description: 'Emulator boot timeout in seconds'
7882
default: 600

action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ inputs:
2424
description: 'Options to pass to the Android emulator'
2525
required: true
2626
default: '-no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim'
27+
android-emulator-arch:
28+
description: 'Architecture for the Android emulator (x86_64 or arm64-v8)'
29+
required: true
30+
# TODO: if macos-13: x86_64, macos-15: arm64-v8
31+
default: 'x86_64'
2732
android-emulator-boot-timeout:
2833
description: 'Emulator boot timeout in seconds'
2934
required: true
@@ -57,6 +62,6 @@ runs:
5762
api-level: ${{ inputs.android-api-level }}
5863
emulator-boot-timeout: ${{ inputs.android-emulator-boot-timeout }}
5964
emulator-options: ${{ inputs.android-emulator-options }}
60-
#arch: x86_64
65+
arch: ${{ inputs.android-emulator-arch }}
6166
script: skip android test --package-path ${{ inputs.package-path }} --swift-version ${{ inputs.swift-version }} ${{ inputs.swift-build-flags }} ${{ inputs.swift-test-flags }}
6267

0 commit comments

Comments
 (0)