Skip to content

Commit 36c2754

Browse files
committed
1 parent 4d3274b commit 36c2754

File tree

1 file changed

+13
-30
lines changed

1 file changed

+13
-30
lines changed

action.yml

Lines changed: 13 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,19 @@
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'
33
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'
66
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: '.'
1212
runs:
1313
using: "composite"
1414
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 }}
3619

0 commit comments

Comments
 (0)