brightdigit/Swift - Build and Test
Builds and optionally tests a Swift package on the current platform
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jun 21, 2026
- License
- MIT
Pinned Snippet
uses: brightdigit/swift-build@b0a63a89ea85b47a8b43dff122e12856ad661f33 # v1.5.7tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| working-directory | Directory containing the Swift package | no | . |
| scheme | The scheme to build and test (auto-calculated from the Swift package when omitted on Apple platforms) | no | — |
| type | Build type (ios, watchos, visionos, tvos, macos, android, wasm, wasm-embedded) | no | — |
| xcode | Xcode version path for Apple platforms | no | — |
| deviceName | Simulator device name for Apple platforms | no | — |
| osVersion | Simulator OS version for Apple platforms | no | — |
| download-platform | Whether to download the platform if not available | no | false |
| windows-swift-version | Swift version for Windows Swift toolchain installation | no | — |
| windows-swift-build | Swift build identifier for Windows Swift toolchain installation | no | — |
| android-swift-version | Swift version for Android Swift SDK installation | no | — |
| android-api-level | Android API level for emulator testing | no | — |
| android-ndk-version | Android NDK version for Swift Android builds | no | — |
| android-run-tests | Run tests on Android emulator (must be false on ARM macOS) | no | — |
| android-swift-build-flags | Additional Swift build flags for Android builds | no | — |
| android-swift-test-flags | Additional Swift test flags for Android tests | no | — |
| android-emulator-boot-timeout | Android emulator boot timeout in seconds | no | — |
| android-copy-files | Additional files to copy to emulator for testing | no | — |
| android-sdk-url | Optional: 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-id | Optional: Custom Android SDK identifier matching android-sdk-url. Passed to skiptools/swift-android-action custom-sdk-id. | no | "" |
| android-sdk-target | Optional: 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-flags | Additional Swift compiler/linker flags for Wasm builds | no | — |
| wasmtime-version | Optional: 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-library | Testing library detection mode for Wasm tests (auto, swift-testing, xctest, both, none). Default: auto (automatically detect) | no | auto |
| wasm-swift-test-flags | Additional flags passed to Wasm test runner (WasmKit/Wasmtime). Example: --parallel | no | "" |
| wasm-sdk-url | Optional: Custom Wasm SDK artifactbundle URL (e.g. a nightly/snapshot bundle). Overrides the derived download.swift.org -RELEASE URL. | no | "" |
| wasm-sdk-checksum | Optional: SHA256 checksum for wasm-sdk-url, passed to `swift sdk install --checksum`. | no | "" |
| use-xcbeautify | Enable xcbeautify for prettified xcodebuild output (Apple platforms only) | no | false |
| xcbeautify-renderer | xcbeautify renderer for CI integration (default, github-actions, teamcity, azure-devops-pipelines) | no | default |
| xcbeautify-version | xcbeautify version to install (e.g., 2.30.1, 2.29.0) | no | 2.30.1 |
| skip-package-resolved | Skip Package.resolved dependency pinning (allows floating dependency versions) | no | false |
| build-only | Build without running tests | no | false |
| save-test-output | Save test output to runner temp directory for artifact upload. Useful for test validation workflows. | no | false |
Outputs
| name | description |
|---|---|
| contains-code-coverage | Whether this build contains code coverage data |
| xcode-version | The Xcode version used for the build (macOS only) |
| swift-version | The Swift version used for the build |