Skip to content

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.