compnerd/Install Swift
Install Swift Release
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Mar 10, 2026
- License
- BSD
Pinned Snippet
uses: compnerd/gha-setup-swift@eeda069c5bc95ac8a9ac5cea7d4f588ae5420ca5 # v0.4.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| source | Where to source the Swift installer. Specify either 'swift.org' or 'custom' (Github release) | yes | swift.org |
| swift-version | Swift version identifier for swift.org builds (e.g., swift-5.5-release, development). Only specify when using official Swift toolchains from swift.org | no | — |
| swift-build | Swift build identifier for swift.org builds (e.g., 5.5-RELEASE, DEVELOPMENT-SNAPSHOT-2021-09-18-a). Only specify when using official Swift toolchains from swift.org | no | — |
| build_arch | Build architecture (amd64 or arm64). Only specify when using official Swift toolchains from swift.org | yes | amd64 |
| branch | [DEPRECATED] Use swift-version instead. Branch for swift.org builds. Only specify when using official Swift toolchains from swift.org | no | — |
| tag | [DEPRECATED] Use swift-build instead. Tag for swift.org builds. Only specify when using official Swift toolchains from swift.org | no | — |
| github-repo | Github repo in "owner/repo" format. Only specify when using custom toolchains from Github releases. | no | — |
| release-tag-name | Release tag name. Only specify when using custom toolchains from Github releases. | no | — |
| release-asset-name | Asset name for the Swift installer executable in the release. Only specify when using custom toolchains from Github releases. | no | — |
| github-token | Optional Github token for fetching a release. Only specify when using custom toolchains from non-public Github releases. | no | — |
| installer-args | Additional arguments to pass to the installer, space-delimited (double quotes are not supported) | no | "" |
| update-sdk-modules | Update SDK module definitions to latest version after installation (Windows only) | no | false |
| cache | Cache downloaded toolchains | no | false |
Outputs
no outputs