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

Windows support

Open fwal opened this issue 3 years ago • 6 comments

Adds support for windows runners.

  • [x] Resolve correct version
  • [x] Download Swift package
  • [ ] Setup Swift on windows
  • [ ] GPG signature validation
  • [ ] Tests

Fixes #132.

Help wanted!

As I have limited experience from and access to a windows environment I could benefit from additional help. Currently I'm trying to figure out how to run commands in the "VS2019 Command Prompt" as required by the toolchain. Any help in this area would be greatly appreciated!

fwal avatar Oct 13 '20 20:10 fwal

Some Relevant information here

Zialus avatar Dec 21 '20 19:12 Zialus

I made a test on windows and I thing we should wait unfortunately swift ton windows does not yet support spm. But I would be glad to help. Keep up the good work!

doozMen avatar Jan 16 '21 08:01 doozMen

Hi @doozMen!

Yeah it also seems like the installer requires the use of a GUI which is a no-go on CI but hopefully this will change soon.

Thanks for trying!

fwal avatar Jan 18 '21 18:01 fwal

@fwal it shouldn't. I've been using the installer on GH Actions for a while now with automated installations: https://github.com/compnerd/swift-win32/blob/main/.github/workflows/windows.yml

compnerd avatar Feb 11 '21 00:02 compnerd

@compnerd That's great news and thank you for the example action, that helps a lot! 🎉

fwal avatar Feb 12 '21 09:02 fwal

I wonder if there's an easy way to call into PowerShell from TypeScript in the code action, or to make it composite only on Windows? I've created a separate action specifically for Windows, and I wonder if your action could maybe use mine as a step somehow? https://github.com/MaxDesiatov/swift-windows-action

MaxDesiatov avatar Sep 08 '21 15:09 MaxDesiatov

Closed in favour of https://github.com/swift-actions/setup-swift/pull/424 🎉

fwal avatar Sep 11 '22 13:09 fwal