24
24
- ' *'
25
25
jobs :
26
26
test :
27
- # important: must be macos-13, since the Android emulator does not work on macos-14
27
+ # Runner must be macos-13, since lack of nested virtualization support on macos-14 prevents the Android emulator from working
28
+ # see: https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#limitations-for-arm64-macos-runners
28
29
runs-on : macos-13
29
30
steps :
30
31
- uses : actions/checkout@v4
31
- - name : " Test Swift Package Locally "
32
+ - name : " Test Swift Package on macOS "
32
33
run : swift test
33
34
- name : " Test Swift Package on Android"
34
35
uses : skiptools/swift-android-action@v1
@@ -47,32 +48,25 @@ for the [Swift Algorithms](https://github.com/skiptools/swift-algorithms) packag
47
48
```
48
49
swift-version:
49
50
description: 'The version of the Swift toolchain to use'
50
- required: true
51
51
default: '5.10.1'
52
52
package-path:
53
53
description: 'The folder where the swift package is checked out'
54
- required: true
55
54
default: '.'
56
55
swift-build-flags:
57
56
description: 'Additional flags to pass to the swift build command'
58
- required: true
59
57
default: ''
60
- android-emulator-options:
61
- description: 'Options to pass to the Android emulator'
62
- required: true
63
- default: '-no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim'
64
- android-emulator-boot-timeout:
65
- description: 'Emulator boot timeout in seconds'
66
- required: true
67
- default: 600
68
58
run-tests:
69
59
description: 'Whether to run the tests or just the build'
70
- required: true
71
60
default: 'true'
72
61
android-api-level:
73
62
description: 'The API level of the Android emulator to run against'
74
- required: true
75
63
default: 24
64
+ android-emulator-options:
65
+ description: 'Options to pass to the Android emulator'
66
+ default: '-no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim'
67
+ android-emulator-boot-timeout:
68
+ description: 'Emulator boot timeout in seconds'
69
+ default: 600
76
70
```
77
71
78
72
## Releasing
0 commit comments