Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwiftWasm 5.9 release #5554

Closed
17 tasks done
kateinoigakukun opened this issue Oct 31, 2023 · 11 comments
Closed
17 tasks done

SwiftWasm 5.9 release #5554

kateinoigakukun opened this issue Oct 31, 2023 · 11 comments
Assignees
Labels
release Issues with the release version

Comments

@kateinoigakukun
Copy link
Member

kateinoigakukun commented Oct 31, 2023

TODO:

  • Repair CI Repair main and release/5.9 build swiftwasm-build#99
  • Prepare Swift SDK artifactbundle
  • [Postponed] Implement some critical build system features
    • Experimental Swift SDK integration
    • SwiftPM Build Plugin support (Supported in 5.9.2)
  • Check core libraries and tools are compatible with the toolchain
  • Set 5.9.1 as default value of swift-compiler-version build-script option
    • This step will be unnecessary from the next release, because we can use upstream pre-built toolchain.
  • Dispatch distribution workflow
gh workflow run manual-distribution.yml -f run-id=$RC_RUN_ID -f scheme=release-5.9 -f override-name=swift-wasm-5.9.1-RELEASE -f display-name="Swift for WebAssembly 5.9.1 Release $(date +'%Y-%m-%d')" -f display-name-short="Swift for WebAssembly 5.9.1 Release" -R swiftwasm/swift

(Replace $RC_RUN_ID with the GitHub Actions run id for the release candidate build)

After tagging the toolchain version

Current blockers

Please report any other issues found in the latest release snapshots to help us prioritize them.

References

@kateinoigakukun kateinoigakukun self-assigned this Oct 31, 2023
@kateinoigakukun kateinoigakukun added the release Issues with the release version label Nov 1, 2023
@kateinoigakukun
Copy link
Member Author

kateinoigakukun commented Jan 15, 2024

Rebuilding toolchain since the arm64-darwin toolchain in the release candidate contained unexpected linkage reference to libzstd installed via homebrew. The build job is running at https://github.com/swiftwasm/swiftwasm-build/actions/runs/7532149900/job/20502246203

@kateinoigakukun
Copy link
Member Author

SwiftWasm 5.9.1 released! https://blog.swiftwasm.org/posts/5-9-released

See https://book.swiftwasm.org/getting-started/setup.html for each download link

@kateinoigakukun
Copy link
Member Author

We started distributing Swift SDK artifactbundles: swiftwasm/swiftwasm-build#180

You can install WebAssembly SDK by following commands with Swift 5.9 installed:

$ swift experimental-sdk install https://github.com/swiftwasm/swift/releases/download/swift-wasm-DEVELOPMENT-SNAPSHOT-2024-01-26-a/swift-wasm-DEVELOPMENT-SNAPSHOT-2024-01-26-a-ubuntu20.04_x86_64.artifactbundle.zip
$ swift package init --type executable --name Example
$ swift build --experimental-swift-sdk wasm32-unknown-wasi
$ wasmtime .build/debug/Example.wasm

The initial artifact release is a little bit fat, but swiftlang/swift-sdk-generator#80 will mitigate it.

@kkebo
Copy link

kkebo commented Jan 29, 2024

Thank you for sharing the information.

For installing from GitHub, the --checksum option is required. However, I didn't find checksums because GitHub doesn't show them on the download page.

$ swift experimental-sdk install https://github.com/swiftwasm/swift/releases/download/swift-wasm-DEVELOPMENT-SNAPSHOT-2024-01-26-a/swift-wasm-DEVELOPMENT-SNAPSHOT-2024-01-26-a-ubuntu20.04_x86_64.artifactbundle.zip
Error: downloadError("Error Domain=NSURLErrorDomain Code=-1001 \"(null)\"")

So I had to download it once and then install it.

$ curl -LO https://github.com/swiftwasm/swift/releases/download/swift-wasm-DEVELOPMENT-SNAPSHOT-2024-01-26-a/swift-wasm-DEVELOPMENT-SNAPSHOT-2024-01-26-a-ubuntu20.04_x86_64.artifactbundle.zip
$ swift experimental-sdk install swift-wasm-DEVELOPMENT-SNAPSHOT-2024-01-26-a-ubuntu20.04_x86_64.artifactbundle.zip
swift-wasm-DEVELOPMENT-SNAPSHOT-2024-01-26-a-ubuntu20.04_x86_64.artifactbundle.zip is assumed to be an archive, unpacking...
Swift SDK bundle at `swift-wasm-DEVELOPMENT-SNAPSHOT-2024-01-26-a-ubuntu20.04_x86_64.artifactbundle.zip` successfully installed.

@kateinoigakukun
Copy link
Member Author

kateinoigakukun commented Jan 29, 2024

@KKK669 Which host swift version are you using?

@kkebo
Copy link

kkebo commented Jan 29, 2024

@kateinoigakukun I'm using Swift 5.9.2 on Linux aarch64, so I actually installed https://github.com/swiftwasm/swift/releases/download/swift-wasm-5.9-SNAPSHOT-2024-01-28-a/swift-wasm-5.9-SNAPSHOT-2024-01-28-a-ubuntu20.04_aarch64.artifactbundle.zip. Also, I tried Swift main snapshot.

The requirement of --checksum is not host-dependent. According to the Swift Evolution proposal, it's generally required.

For Swift SDKs installed from remote URLs an additional --checksum option is required, through which users of a Swift SDK can specify a checksum provided by a publisher of the SDK.

@kateinoigakukun
Copy link
Member Author

@KKK669 Actually the checksum verification feature is not even implemented yet in SwiftPM. So I suspect there should be a different problem here. Would you mind trying it again after uninstalling the SDK. I guess there might be internet connection issue?

@kkebo
Copy link

kkebo commented Jan 29, 2024

@kateinoigakukun I see. Sorry for my misleading information.

@kkebo
Copy link

kkebo commented Feb 14, 2024

I guess there might be internet connection issue?

By the way, it turned out that downloadError("Error Domain=NSURLErrorDomain Code=-1001 \"(null)\"") was caused by swiftly. It was a symbolic link issue as well as this one. And it also seems to happen when downloading an artifact bundle.

@kateinoigakukun
Copy link
Member Author

kateinoigakukun commented Mar 10, 2024

Started release workflow for 5.9.2
https://github.com/swiftwasm/swift/actions/runs/8219885666

gh workflow run manual-distribution.yml -f run-id=8215949707 -f scheme=release-5.9 -f override-name=swift-wasm-5.9.2-RELEASE -f display-name="Swift for WebAssembly 5.9.2 Release $(date +'%Y-%m-%d')" -f display-name-short="Swift for WebAssembly 5.9.2 Release" -R swiftwasm/swift

@kateinoigakukun
Copy link
Member Author

Published 5.9.2 with SwiftPM command plugin fix and Swift SDK support. https://github.com/swiftwasm/swift/releases/tag/swift-wasm-5.9.2-RELEASE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release Issues with the release version
Projects
None yet
Development

No branches or pull requests

2 participants