Skip to content

Conversation

@fwal
Copy link
Collaborator

@fwal fwal commented Apr 23, 2025

This is an effort to rip out the old setup and replace it entirely with Swiftly - the preferred way to setup Swift going forward.

This brings several benefits like a unified way to setup Swift on all platforms and support for new Swift versions on day one 😅 and support for dev snapshots.

It will however be a breaking change as it will probably affect how version numbers is handled compared to the old version, stay tuned.

This will be a journey of trial-and-error...

General progress

Tip

This feature is work-in-progress but you can try it out using the "next" "v3" tag:
swift-actions/setup-swift@next
swift-actions/setup-swift@v3
Testing would be greatly appreciated ❤️

Decisions

  • Should the toolchain also be cached (like in previous versions)? This cache could grow quite large.

@fwal fwal added enhancement New feature or request breaking This change is a (potential) breaking change labels Apr 23, 2025
@fwal fwal self-assigned this Apr 23, 2025
@fwal fwal mentioned this pull request Apr 23, 2025
@fwal fwal linked an issue Apr 23, 2025 that may be closed by this pull request
@fwal fwal changed the title Setup Swift more Swiftly 🚀 Setup Swift more Swiftly 🚀 (setup-swift 3.0) Apr 23, 2025
@fwal fwal added this to the 3.0 milestone Apr 24, 2025
@fwal
Copy link
Collaborator Author

fwal commented Apr 24, 2025

Whoop - it's alive!

dongjoon-hyun added a commit to apache/spark-connect-swift that referenced this pull request Apr 29, 2025
### What changes were proposed in this pull request?

This PR aims to upgrade `setup-swift` to `next` tag in order to test `setup-swift 3.0` dev version.
- swift-actions/setup-swift#710

### Why are the changes needed?

To fix the flakiness issues during `Swift` installation on linux environment.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #94 from dongjoon-hyun/setup-swift-next.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
@pepicrft
Copy link

This is amazing @fwal 🚀. Thanks for driving this effort forward.

@nickfyson
Copy link

This all sounds great!

Investigate GPG issues on linux

Particularly excited by this, I assume that's looking to address #591? 😀

@liambutler-lawrence
Copy link

Any updates on this?

fwal added 4 commits November 19, 2025 08:24
# Conflicts:
#	.github/workflows/ci.yml
#	package-lock.json
#	src/linux-install.ts
#	src/swift-versions.ts
#	src/windows-install.ts
@fwal fwal marked this pull request as ready for review November 19, 2025 07:27
@fwal
Copy link
Collaborator Author

fwal commented Nov 19, 2025

This will be merged and released as a beta, you can use either swift-actions/setup-swift@next or swift-actions/setup-swift@v3 to get the latest updates

@fwal fwal merged commit 0dad4e4 into main Nov 30, 2025
7 checks passed
@fwal fwal deleted the next branch November 30, 2025 19:12
@marcprux
Copy link
Contributor

Should @next still be working? I just hit this error:

Unable to resolve action `swift-actions/setup-swift@next`, unable to find version `next`

@fwal
Copy link
Collaborator Author

fwal commented Nov 30, 2025

Just pushed out a beta of v3 🎉 you can use that tag instead (that will also contain any future updates) @marcprux:

- uses: swift-actions/setup-swift@v3

@marcprux
Copy link
Contributor

Great!

You may still want to keep @next around for a little while, or else reach out to the repositories that are currently using it so they know to update their references.

kkebo added a commit to kkebo/setup-swift that referenced this pull request Dec 1, 2025
The functions `setupKeys` and `refreshKeys` have not been used since the
transition to Swiftly in swift-actions#710. So the changes in swift-actions#772 are meaningless.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking This change is a (potential) breaking change enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port to swiftly 1.0.0 Error building on Linux arm64 runners Support trunk and dev snapshots Read Swift version from .swift-version

6 participants