Replies: 6 comments 4 replies
-
Thanks very much for the suggestion, Marc. It's funny you should bring this up now as @finestructure and I discussed this just a couple of weeks ago. My biggest hesitance is that the matrix is already quite information-dense, and I'm not sure that the number of people using Swift on Windows is sufficient to warrant more data being added to that matrix. There's also the issue of needing Windows builder machines, which is a solvable problem but does increase maintenance and complexity of the build system. We concluded that the time wasn't quite right now, but that we'd look at it again later. I'll leave this issue open so we can track it through here in the future. |
Beta Was this translation helpful? Give feedback.
-
TL;DR: +1, essentially. But my rationale FYI: Though I don't use Windows personally, as owner of a few Swift packages that work on Windows, I'd like to highlight that fact (in the normal way as for other platforms - in the build matrix on swiftpackageindex.com, in the platform support badge in README.md, etc). It's also frankly easier to test a wide range of platform and Swift version combinations through the Swift Package Index than through GitHub actions. I like supporting the fledgling Windows support within the Swift community. While I quite understand the hesitance to support something with so little developer mindshare right now, I think it's better to think of this as an opportunity for the Swift Package Index to help accelerate Windows support. |
Beta Was this translation helpful? Give feedback.
-
+1 for Windows support. I consider Windows now a mature platform for Swift (every pull request for Swift has to pass the Windows tests), much more used on Windows than in the past, and supporting Windows should help for recognizing Swift as a a “general” programming language, and many packages — as already mentioned — should already work fine on Windows. +1 also for the mentioned feature of being able to give hints e.g. about on which platforms a package does not (!) work properly, as this might not be obvious from automated building or testing (maybe via SPM enhancements). +1 also for according search filters. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Is there any update on this? To me it now a big hole in the multi-platform story for Swift, not only is Windows officially supported but we have several high-profile projects publicly stating that they are doing Swift on Windows and yet it's impossible to tell if a package will work or not. I think if Swift is going to be taken seriously as a multi-platform language / eco-system then this needs addressing so any update would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
@daveverwer I know this was previously discussed a few years ago but the landscape has changed somewhat and I wondered if it's worth considering again? Can completely understand the hesitation to introduce more overhead though. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay in getting back to you @andy-davies and thanks for the reminder @theolampert! This is something we have been investigating again recently and there are still a couple of issues holding us back. The main one is that we have a dependency on NIO in our build process and NIO is not yet working on Windows. We also have a few more dependencies and other issues that would make this a little challenging. That said, we agree this is really important and hope to work around those dependencies and issues to get this working. We are hopeful that this will be during 2025. The other issue is that we would also need Windows-capable build machines, which we do not have at the moment. We're looking into finding a way to get those up and running, too. |
Beta Was this translation helpful? Give feedback.
-
The nascent Swift support for Windows is maturing to the point where it can be reliably included in CI. E.g.,:
• https://github.com/SwiftGFX/SwiftMath/blob/master/.github/workflows/swift.yml
• https://github.com/glimpseio/BricBrac/actions/runs/685566445
It would be great if Windows could be added to the Compatibility matrix.
Beta Was this translation helpful? Give feedback.
All reactions