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

Swift 5.8 isn't available on Windows

Open wadetregaskis opened this issue 2 years ago • 4 comments

Describe the bug "Version "5.8" is not available"

https://github.com/wadetregaskis/FoundationExtensions/actions/runs/4842921516/jobs/8630176019#step:2:5

Workflow configuration (please complete the following information):

  • Action version (uses): swift-actions/setup-swift@v1
  • Platform (runs-on): windows-latest
  • Swift version (swift-version): 5.8

wadetregaskis avatar Apr 30 '23 06:04 wadetregaskis

Same error on 5.9:

https://github.com/kassane/CxxInterop-tests/actions/runs/7087742018/job/19288682450#step:4:5

Run swift-actions/[email protected]
Error: Unexpected error, unable to continue. Please report at https://github.com/swift-actions/setup-swift/issues
Version "5.9" is not available
Stacktrace:
Error: Version "5.9" is not available
    at Object.verify (D:\a\_actions\swift-actions\setup-swift\v1.25.0\dist\index.js:648:15)
    at D:\a\_actions\swift-actions\setup-swift\v1.25.0\dist\index.js:397:36
    at Generator.next (<anonymous>)
    at fulfilled (D:\a\_actions\swift-actions\setup-swift\v1.25.0\dist\index.js:377:58)

kassane avatar Dec 04 '23 14:12 kassane

This setup is not intended to work on Windows with Swift versions 5.7, 5.7.1, 5.7.2, 5.7.3, 5.8, 5.8.1, 5.9, 5.9.1, and 5.9.2. This is a specification, not a bug. https://github.com/swift-actions/setup-swift/blob/cdbe0f7f4c77929b6580e71983e8606e55ffe7e4/src/swift-versions.ts#L6

k-taro56 avatar Mar 05 '24 07:03 k-taro56

Oh, that's disappointing. Why has setup-swift dropped Windows support?

wadetregaskis avatar Mar 05 '24 16:03 wadetregaskis

@wadetregaskis I agree with you. It seems that the reason is mentioned in the following link, but I would appreciate it if it was explicitly stated. https://github.com/swift-actions/setup-swift/pull/499#issuecomment-1305864061

k-taro56 avatar Mar 07 '24 00:03 k-taro56