Tomacco

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.

ArgumentTypeRequiredDefaultDetails
sdkstring""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.

ArgumentTypeRequiredDefaultDetails
sourcestringyesLocal artifactbundle path or HTTPS download URL
checksumstring""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.

ArgumentTypeRequiredDefaultDetails
pathstringyesnon-empty; Absolute local filesystem path
platformstring"android"one of android, linux
architecturestring"aarch64"one of aarch64, x86_64, armv7
configurationstring"debug"one of debug, release
actionstring"build"one of build, test
sdkstring""Installed Swift SDK identifier; defaults to configured Android SDK
api_levelinteger2623 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.

ArgumentTypeRequiredDefaultDetails
pathstringyesnon-empty; Absolute local filesystem path
platformstring"android"one of android, linux
architecturestring"aarch64"one of aarch64, x86_64, armv7
configurationstring"debug"one of debug, release
actionstring"build"one of build, test
sdkstring""Installed Swift SDK identifier; defaults to configured Android SDK
api_levelinteger2623 to 37
tomaccoctl call swift.execute '{"path":"<path>"}'

View this page as Markdown on GitHub