File tree Expand file tree Collapse file tree 1 file changed +13
-30
lines changed Expand file tree Collapse file tree 1 file changed +13
-30
lines changed Original file line number Diff line number Diff line change 1
- name : ' Hello World '
2
- description : ' Greet someone '
1
+ name : ' Swift Android Test '
2
+ description : ' Cross-compiles a swift package for Android and runs the test cases in an Android emulator '
3
3
inputs :
4
- who-to-greet : # id of input
5
- description : ' Who to greet '
4
+ swift-version :
5
+ description : ' The version of the Swift toolchain to use '
6
6
required : true
7
- default : ' World '
8
- outputs :
9
- random-number :
10
- description : " Random number "
11
- value : ${{ steps.random-number-generator.outputs.random-number }}
7
+ default : ' 5.10.1 '
8
+ package-path :
9
+ description : ' The folder where the swift package is checked out '
10
+ required : true
11
+ default : ' . '
12
12
runs :
13
13
using : " composite"
14
14
steps :
15
- - name : Set Greeting
16
- run : echo "Hello $INPUT_WHO_TO_GREET."
17
- shell : bash
18
- env :
19
- INPUT_WHO_TO_GREET : ${{ inputs.who-to-greet }}
20
-
21
- - name : Random Number Generator
22
- id : random-number-generator
23
- run : echo "random-number=$(echo $RANDOM)" >> $GITHUB_OUTPUT
24
- shell : bash
25
-
26
- - name : Set GitHub Path
27
- run : echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
28
- shell : bash
29
- env :
30
- GITHUB_ACTION_PATH : ${{ github.action_path }}
31
-
32
- - name : Run goodbye.sh
33
- if : false
34
- run : goodbye.sh
35
- shell : bash
15
+ - name : Install Toolchain
16
+ run : brew install swift-android-sdk/toolchain/swift-android-sdk@${{ inputs.swift-version }} skiptools/skip/skip
17
+ - name : Build package
18
+ run : skip android build --build-tests --package-path ${{ inputs.package-path }}
36
19
You can’t perform that action at this time.
0 commit comments