compnerd/Install Swift

Install Swift Release

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Mar 10, 2026
License
BSD

Pinned Snippet

workflow.ymlSHA-pinned
uses: compnerd/gha-setup-swift@eeda069c5bc95ac8a9ac5cea7d4f588ae5420ca5 # v0.4.0

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

namedescriptionrequireddefault
sourceWhere to source the Swift installer. Specify either 'swift.org' or 'custom' (Github release)yesswift.org
swift-versionSwift version identifier for swift.org builds (e.g., swift-5.5-release, development). Only specify when using official Swift toolchains from swift.orgno
swift-buildSwift 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.orgno
build_archBuild architecture (amd64 or arm64). Only specify when using official Swift toolchains from swift.orgyesamd64
branch[DEPRECATED] Use swift-version instead. Branch for swift.org builds. Only specify when using official Swift toolchains from swift.orgno
tag[DEPRECATED] Use swift-build instead. Tag for swift.org builds. Only specify when using official Swift toolchains from swift.orgno
github-repoGithub repo in "owner/repo" format. Only specify when using custom toolchains from Github releases.no
release-tag-nameRelease tag name. Only specify when using custom toolchains from Github releases.no
release-asset-nameAsset name for the Swift installer executable in the release. Only specify when using custom toolchains from Github releases.no
github-tokenOptional Github token for fetching a release. Only specify when using custom toolchains from non-public Github releases.no
installer-argsAdditional arguments to pass to the installer, space-delimited (double quotes are not supported)no""
update-sdk-modulesUpdate SDK module definitions to latest version after installation (Windows only)nofalse
cacheCache downloaded toolchainsnofalse

no outputs