setup-swift icon indicating copy to clipboard operation
setup-swift copied to clipboard

Add support for swift 6 nightlies

Open mman opened this issue 1 year ago • 3 comments

With the upcoming migration to Swift 6 and Swift Testing it would be cool if support for swift 6 can be added early via nightlies so that work in progress towards swift 6 migration, especially around concurrency and testing, can already be part of the workflows on GitHub.

mman avatar Jun 21 '24 12:06 mman

Yeah I agree this would be great! The only real hurdle is resolving the path to the pkg to download as they contain the date when the last snapshot where created (unlike stable releases that have a fixed path). Once that is figured out (would be great if they would have a feed or something) this would be easy to implement. 🙂

fwal avatar Jul 03 '24 17:07 fwal

Exactly, I'm aware of the limitation, I think it may need a collaboration from the swift build team to perhaps provide a stable symlink and or sum file so that the action can easily compare whether new nightly was published. Alternatively hardcoding the path with date to the action and re-release a patch version of this action automatically whenever new nightly is published, but that's I assume needles work unless automated as much as possible.

mman avatar Jul 04 '24 10:07 mman

Hi! Swiftly fetches GitHub tags from Swift main repository, and uses regex to match specified snapshot and fetch date in the end (parsing snapshot function). Maybe this can be used to add snapshot support to GitHub Actions similarly as Swiftly does, and specified something like swift-version: "main-snapshot"?

UPD: Pull request has working implementation.

khlopko avatar Aug 02 '24 10:08 khlopko

As v3 of this action now have migrated to use Swiftly itself, nightlies and trunk should be fully supported 🎉

fwal avatar Nov 30 '25 20:11 fwal