setup-swift
setup-swift copied to clipboard
Adds Swift v6.0
This adds swift 6.0.0 to the available version list.
I mainly just copied https://github.com/swift-actions/setup-swift/commit/7090b9ff07db2f5273e63de85f7ea7357c4335fd, please let me know if there's more I should do!
Attempts to resolve https://github.com/swift-actions/setup-swift/issues/683
Example of working downstream job: https://github.com/GraphQLSwift/GraphQL/actions/runs/10973971885/job/30471967466?pr=150
@NeedleInAJayStack for projects which pin their workflows to patch level could you please add 6.0.0 as well?
could you please add 6.0.0 as well?
Sure, I've added 6.0.0.
I can confirm @NeedleInAJayStack's solution works: https://github.com/MortenGregersen/Bagbutik/actions/runs/11029802109
@fwal Bumping here as Swift 6 has been out for several weeks now and is a blocker on CI jobs
While we are waiting for this PR to be merged, our team solved CI issue by using the latest macOS version (15.0) that includes Xcode 16.0 and Swift by default.
You can use these commands and don't need to include @setup-swift action.
name: Build iOS app
runs-on: macos-15
steps:
- name: Get swift version
run: swift --version # Swift 6.0
- name: Select Xcode
run: sudo xcode-select -s '/Applications/Xcode_16.0.app/Contents/Developer'
@fwal / @slashmo Any thoughts on this - I'd be happy to add 6.0.1 in this same pull request if you prefer.
Looking at the ongoing conversation, would it make sense to not only allow the installation of the specified list of versions but allow any SEMVER format outside that list with a "default process" and with the risk of failing? And e.g. a output that you're using a untested version?
Hello everyone! 👋🏻 Sorry for the late response, I'll get this out now.