skiptools/Swift Android Action

Cross-compiles a swift package for Android and runs the test cases in an Android emulator

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
swift-versionThe version of the Swift toolchain to useyeslatest
ndk-versionThe version of the NDK to use for 6.2+no""
swift-branchThe branch of the Swift toolchain to useyes""
package-pathThe folder where the swift package is checked outyes.
swift-build-flagsAdditional flags to pass to the swift build commandyes""
swift-configurationWhether to build in debug or release configurationyesdebug
swift-test-flagsAdditional flags to pass to the swift test commandyes""
android-emulator-test-folderEmulator folder where tests are copied and runyes/data/local/tmp/swift-android-tests
test-envTest environment variables key=valueyes""
android-emulator-optionsOptions to pass to the Android emulatoryes-no-window -noaudio -no-boot-anim
android-emulator-boot-timeoutEmulator boot timeout in secondsyes600
free-disk-spaceWhether to try freeing some disk space before launching Android emulatornofalse
build-packageWhether to build the package or just set up the SDKyestrue
build-testsWhether to build the tests or just the sourcesyestrue
run-testsWhether to run the tests or just the buildyestrue
copy-filesAdditional files to copy to emulator for testingyes""
android-coresNumber of cores to use for the emulatoryes2
android-api-levelThe API level of the Android emulator to run againstyes28
compile-sdk-api-levelThe Android API level for the compile SDK build triple (defaults to android-api-level)no""
android-channelnostable
android-profileno""
android-targetnodefault
installed-sdkno""
installed-swiftno""
custom-sdk-urlno""
custom-sdk-idno""
namedescription
swift-buildThe swift build command using the installed toolchain and SDK
swift-sdkThe swift SDK that is used to build for Android
swift-installThe installation root for the host Swift toolchain