Announcing setup-swift 1.13 for Swift environment setup with GitHub actions

Hey everyone!

I am excited to share version 1.13 of setup-swift GitHub action release. It has been more than two years since my last post on this forum while the action has gotten lot more features since then. The action now supports all the GitHub runner variants (Ubuntu, macOS, Windows both x86 and arm64).

Now you can setup SDKs in one-shot in much user-friendly way:

- uses: SwiftyLab/setup-swift@latest
  with:
    sdks: static-linux;wasm;android

Would love any feedback on improvements for this action.

8 Likes

Hi Soumya,

Just converted my pipeline that used to use swift-actions / setup-swift (it broke again) over to your solution. Works like a charm :+1:

Glad you found this useful, @maartene.

1 Like

Is this coordinated at all with the (somewhat de-facto but also under-maintained) swift-actions/setup-swift action?

IIUC they are not related.

Still it seems there are multiple “setup Swift toolchain on GitHub Actions” actions out there. I would love to have one default one that just works - maybe even backed by the Swift Language organization.

But until that time, I’ll use whichever one works reliably and stays reasonably up-to-date.

No @marcprux, I had developed this action for my personal usage 2-3 years back due to facing similar issues like the one you have linked, e.g. new swift versions are available at a much later point, Linux and Windows setup issues.

I maintain the action regularly, although there isn’t much effort needed from my side. The action picks the toolchain metadata published from the official swift-org-website. Most often my efforts are required for introducing new platform support (e.g. supporting ARM runners, SDK installation support etc.), when there is a breaking change on the metadata published or breaking change in setup process of any supported platforms (mostly Windows I have faced and I keep the action up-to-date with @compnerd‘s GitHub action Windows implementation). I mention the basic workings of this action in wiki.

Still it seems there are multiple “setup Swift toolchain on GitHub Actions” actions out there. I would love to have one default one that just works - maybe even backed by the Swift Language organization.

Yeah @maartene, I wanted this 2-3 years back, but since there doesn’t seem to be official well maintained action that just works I built this one.