Docs Operation reference swift operations
swift operations#
5 operations. Generated from assets/operations.json; all areas.
On this page (5)
swift.status#
Swift toolchain
Report the Swift compiler, installed cross-compilation SDKs and Android NDK.
Annotations: read-only, idempotent, open world.
Takes no arguments.
tomaccoctl call swift.status
swift.android_configure#
Connect Swift to the Android NDK
Run the installed Swift SDK's NDK setup script using the configured ANDROID_NDK_HOME. Required after SDK/NDK installation or relocation.
Annotations: writes, idempotent, open world.
| Argument | Type | Required | Default | Details |
|---|---|---|---|---|
sdk | string | "" | Installed Swift Android SDK identifier |
tomaccoctl call swift.android_configure
swift.sdk_install#
Install Swift SDK
Install a Swift SDK from a local bundle or HTTPS URL with an explicit SHA-256 checksum.
Annotations: writes, idempotent, open world.
| Argument | Type | Required | Default | Details |
|---|---|---|---|---|
source | string | yes | Local artifactbundle path or HTTPS download URL | |
checksum | string | "" | SHA-256; required for remote downloads |
tomaccoctl call swift.sdk_install '{"source":"<source>"}'
swift.plan#
Plan Swift build
Resolve a native SwiftPM build for Android or Linux. Portable unit tests execute on Linux.
Annotations: read-only, idempotent, open world.
| Argument | Type | Required | Default | Details |
|---|---|---|---|---|
path | string | yes | non-empty; Absolute local filesystem path | |
platform | string | "android" | one of android, linux | |
architecture | string | "aarch64" | one of aarch64, x86_64, armv7 | |
configuration | string | "debug" | one of debug, release | |
action | string | "build" | one of build, test | |
sdk | string | "" | Installed Swift SDK identifier; defaults to configured Android SDK | |
api_level | integer | 26 | 23 to 37 |
tomaccoctl call swift.plan '{"path":"<path>"}'
swift.execute#
Compile / test Swift
Compile a Swift package to native code or run its Linux unit tests as a job.
Annotations: writes, not idempotent, open world.
| Argument | Type | Required | Default | Details |
|---|---|---|---|---|
path | string | yes | non-empty; Absolute local filesystem path | |
platform | string | "android" | one of android, linux | |
architecture | string | "aarch64" | one of aarch64, x86_64, armv7 | |
configuration | string | "debug" | one of debug, release | |
action | string | "build" | one of build, test | |
sdk | string | "" | Installed Swift SDK identifier; defaults to configured Android SDK | |
api_level | integer | 26 | 23 to 37 |
tomaccoctl call swift.execute '{"path":"<path>"}'