File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 9
9
description : ' The folder where the swift package is checked out'
10
10
required : true
11
11
default : ' .'
12
+ swift-build-flags :
13
+ description : ' Additional flags to pass to the swift build command'
14
+ required : false
15
+ default : ' '
16
+ inputs.android-emulator-options :
17
+ description : ' Additional options to pass to the Android emulator'
18
+ required : false
19
+ default : ' '
12
20
run-tests :
13
21
description : ' Whether to run the tests or just the build'
14
22
required : true
@@ -29,14 +37,15 @@ runs:
29
37
run : brew install skiptools/skip/skip swift-android-sdk/toolchain/swift-android-sdk@${{ inputs.swift-version }}
30
38
shell : bash
31
39
- name : Build Swift package for Android
32
- run : skip android build --build-tests --package-path ${{ inputs.package-path }}
40
+ run : skip android build --build-tests --package-path ${{ inputs.package-path }} ${{ inputs.swift-build-flags }}
33
41
shell : bash
34
42
- name : Run Swift tests on Android emulator
35
43
if : ${{ inputs.run-tests == 'true' }}
36
44
uses : reactivecircus/android-emulator-runner@v2
37
45
with :
38
46
api-level : ${{ inputs.android-api-level }}
47
+ emulator-options : ${{ inputs.android-emulator-options }}
39
48
arch : x86_64
40
49
script : |
41
- skip android test --package-path ${{ inputs.package-path }}
50
+ skip android test --package-path ${{ inputs.package-path }} ${{ inputs.swift-build-flags }}
42
51
You can’t perform that action at this time.
0 commit comments