Repository navigation
Windows: released .exe statically links Swift stdlib - #2265
Conversation
|
@nicklockwood lmk if this would be acceptable! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2265 +/- ##
========================================
Coverage 95.10% 95.10%
========================================
Files 158 158
Lines 23698 23698
========================================
+ Hits 22538 22539 +1
+ Misses 1160 1159 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@roman-bcny thanks! |
|
Thank you @nicklockwood! When could we get a statically linked release? Looking forward to getting started on the integration into our workflows! |
|
@roman-bcny I'll include it with the next point release (unless you need it more urgently?) |
|
@nicklockwood not really urgent, just not sure what to expect - extrapolating from the release history might be a few weeks? |
|
@roman-bcny there's no fixed release schedule, but yes that sounds about right |
|
@roman-bcny the 0.58.6 release uses your statically linked builds. For some reason the upload script is broken, but I uploaded the MSIs manually for now |
|
Woohoo thanks @nicklockwood! lmk if the breakage is likely due to some of my changes and I'll have a look |
|
That looks odd and probably not related to the change, except for a possible side effect of uploading 2 binaries instead of only the amd64 one. I see it's using skx/github-action-publish-binaries which has not had updates in a long time. Here's a quick diff made by cursor, untested and might be broken or missing context on how your release process works: |
|
@roman-bcny |
Static linking is now supported by the toolchain (to be released in 6.3) which resolves #1775 and avoids issues with loading the wrong Swift.dll.
The resulting .exe in my tests is roughly 50MB and I verified on our (BCNY) codebase that we obtained 0 changed files when testing on the same version as what we use on Mac (0.56.1). I also tested the latest main and saw differences in formatting (as expected from the release notes) so it all seems to work nicely.
As the 6.3 toolchain is not released yet, this relies on the development snapshot @compnerd used in https://github.com/compnerd/vigil/blob/e8e5ca1f0e04f241b8ba625fc7d2a2aacfaba5b6/.github/workflows/release.yml#L31
This change also updates the windows part of build.yml to use the same snapshot, re-enables aarch64 as it's now working, and removes the bundling of the toolchain from the installer as now a statically linked exe is being produced.