Repository navigation
Releases
Releases · tryswift/setup-swift
v1.2.0
What's new
- Ubuntu 26.04 (x86_64 and aarch64) support: maps
ubuntu-26.04to swift.org'subuntu2604archives and uses GCC 15. GitHub'subuntu-latestis moving to 26.04. - Swift 6.4.1 is the first release with Ubuntu 26.04 archives; older versions fail with a clear error on 26.04.
Verification (pinned GPG fingerprints, cache re-verification, symlink rejection) is unchanged.
Pin: tryswift/setup-swift@ce5fe39afee72fd792fabab6db8ec3005962daf7 # v1.2.0
v1.1.0
Additive release: nothing changes unless you use the new inputs.
Windows
windows-toolchain-variant(asserts|noasserts, defaultasserts).noassertsinstalls the+NoAssertstoolchain, which win-arm64 needs: the+Assertsswift-package.exefails to start there (swiftlang/swift#92379). (#3)windows-minimal(defaultfalse).trueleaves out the debugger, its Python and the Android platform; the installer step went from 71–83 s to about 57 s in CI. The IDE feature stays: without itswift.exefails withERROR_SXS_CANT_GEN_ACTCTX. (#4)- CI now covers
windows-11-arm.
Linux
- The packages needed only to run the toolchain are installed in the background while the archive is fetched, verified and extracted;
apt-get updateruns only if installing from the image's package lists fails. The archive is extracted withpigzwhen the runner has it. The install step went from about 37 s to 21–25 s. (#4)
Not changed
- The macOS
.pkgand the Windows installer are still downloaded every run: caching them was measured slower than downloading from swift.org. (#4) - Verification is as before on every platform.
Marketplace
v1.0.0
First release of tryswift/setup-swift: a GitHub Action that installs Swift toolchains from swift.org and verifies them before use, without a Node.js runtime (composite action, bash/pwsh only).
- uses: tryswift/setup-swift@v1
with:
swift-version: "6.4.1"Platforms
- Linux: Ubuntu 22.04 / 24.04 (x86_64, aarch64); Ubuntu 20.04 URL logic is present but untested
- macOS (official notarized
.pkg, installed in the user domain) - Windows (official installer; x86_64 tested, arm64 untested)
- Swift SDKs via
swift-sdks:static-linux,wasm,android
Verification
- Linux toolchains: GPG signature over the exact archive;
GOODSIG+VALIDSIGmust match a pinned swift.org primary key fingerprint; expired/revoked/multiple signatures are rejected. - macOS:
pkgutil --check-signature, notarization, and signerDeveloper ID Installer: Swift Open Source (V9AUD2URP3). - Windows: Authenticode status Valid with a pinned Apple Inc. signer subject (swift.org publishes no GPG signature for Windows installers, so this is weaker than the Linux check).
- Swift SDKs: pinned SHA-256 from
sdk-checksums.txt, plus GPG when available. - Cached archives are re-verified on every run from a private snapshot; extracted trees are never cached or reused. Linux installs to a stable per-runner path under
$RUNNER_TEMP(keeps SwiftPM build caches valid); symlinked path components are rejected. - Preinstalled toolchains are only used with
use-preinstalled: true(unverified, opt-in).
See the README for inputs/outputs, the self-hosted runner isolation model, and how to update pinned keys and checksums.