Skip to content

Releases

v1.2.0

Choose a tag to compare

@d-date d-date released this 24 Oct 13:44
ce5fe39

What's new

  • Ubuntu 26.04 (x86_64 and aarch64) support: maps ubuntu-26.04 to swift.org's ubuntu2604 archives and uses GCC 15. GitHub's ubuntu-latest is 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

Choose a tag to compare

@d-date d-date released this 22 Oct 05:47
6710b77

Additive release: nothing changes unless you use the new inputs.

Windows

  • windows-toolchain-variant (asserts | noasserts, default asserts). noasserts installs the +NoAsserts toolchain, which win-arm64 needs: the +Asserts swift-package.exe fails to start there (swiftlang/swift#92379). (#3)
  • windows-minimal (default false). true leaves 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 it swift.exe fails with ERROR_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 update runs only if installing from the image's package lists fails. The archive is extracted with pigz when the runner has it. The install step went from about 37 s to 21–25 s. (#4)

Not changed

  • The macOS .pkg and 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

  • Display name try! Swift Setup, with branding. uses: tryswift/setup-swift@v1 is unchanged. (#5, #6)

v1.0.0

Choose a tag to compare

@d-date d-date released this 21 Oct 21:14
393e46a

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 + VALIDSIG must match a pinned swift.org primary key fingerprint; expired/revoked/multiple signatures are rejected.
  • macOS: pkgutil --check-signature, notarization, and signer Developer 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.