brightdigit/Swift - Build and Test

Builds and optionally tests a Swift package on the current platform

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 21, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: brightdigit/swift-build@b0a63a89ea85b47a8b43dff122e12856ad661f33 # v1.5.7

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
working-directoryDirectory containing the Swift packageno.
schemeThe scheme to build and test (auto-calculated from the Swift package when omitted on Apple platforms)no
typeBuild type (ios, watchos, visionos, tvos, macos, android, wasm, wasm-embedded)no
xcodeXcode version path for Apple platformsno
deviceNameSimulator device name for Apple platformsno
osVersionSimulator OS version for Apple platformsno
download-platformWhether to download the platform if not availablenofalse
windows-swift-versionSwift version for Windows Swift toolchain installationno
windows-swift-buildSwift build identifier for Windows Swift toolchain installationno
android-swift-versionSwift version for Android Swift SDK installationno
android-api-levelAndroid API level for emulator testingno
android-ndk-versionAndroid NDK version for Swift Android buildsno
android-run-testsRun tests on Android emulator (must be false on ARM macOS)no
android-swift-build-flagsAdditional Swift build flags for Android buildsno
android-swift-test-flagsAdditional Swift test flags for Android testsno
android-emulator-boot-timeoutAndroid emulator boot timeout in secondsno
android-copy-filesAdditional files to copy to emulator for testingno
android-sdk-urlOptional: Custom Android Swift SDK artifactbundle URL (e.g. a swift.org nightly bundle). Passed to skiptools/swift-android-action custom-sdk-url. Requires android-sdk-id.no""
android-sdk-idOptional: Custom Android SDK identifier matching android-sdk-url. Passed to skiptools/swift-android-action custom-sdk-id.no""
android-sdk-targetOptional: Swift SDK build triple for the custom Android SDK (maps to skiptools/swift-android-action installed-sdk). Required when android-sdk-url is set. Default: aarch64-unknown-linux-android28.no""
wasm-swift-flagsAdditional Swift compiler/linker flags for Wasm buildsno
wasmtime-versionOptional: Use Wasmtime runtime fallback (specify specific version like "27.0.0"). Default: Uses WasmKit runtime (bundled with Swift 6.2.3+). Note: "latest" is no longer supported.no""
wasm-testing-libraryTesting library detection mode for Wasm tests (auto, swift-testing, xctest, both, none). Default: auto (automatically detect)noauto
wasm-swift-test-flagsAdditional flags passed to Wasm test runner (WasmKit/Wasmtime). Example: --parallelno""
wasm-sdk-urlOptional: Custom Wasm SDK artifactbundle URL (e.g. a nightly/snapshot bundle). Overrides the derived download.swift.org -RELEASE URL.no""
wasm-sdk-checksumOptional: SHA256 checksum for wasm-sdk-url, passed to `swift sdk install --checksum`.no""
use-xcbeautifyEnable xcbeautify for prettified xcodebuild output (Apple platforms only)nofalse
xcbeautify-rendererxcbeautify renderer for CI integration (default, github-actions, teamcity, azure-devops-pipelines)nodefault
xcbeautify-versionxcbeautify version to install (e.g., 2.30.1, 2.29.0)no2.30.1
skip-package-resolvedSkip Package.resolved dependency pinning (allows floating dependency versions)nofalse
build-onlyBuild without running testsnofalse
save-test-outputSave test output to runner temp directory for artifact upload. Useful for test validation workflows.nofalse
namedescription
contains-code-coverageWhether this build contains code coverage data
xcode-versionThe Xcode version used for the build (macOS only)
swift-versionThe Swift version used for the build