Skip to content

Conversation

@pedrovgs
Copy link
Member

This PR adds CI support using GitHub actions. There is a workflow already to guarantee Swift compatibility on MacOS, this new workflow will cover our needs for WASM.

Right now, the build is going to fail because the code is obviously not compatible with XP. But future PRs will make the build pass and we will use this CI as a tool to guarantee WASM compatibility in the future as well.

Copy link

@pacowong pacowong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

- uses: actions/checkout@v4
- run: swift sdk install https://github.com/swiftwasm/swift/releases/download/swift-wasm-6.0.2-RELEASE/swift-wasm-6.0.2-RELEASE-wasm32-unknown-wasi.artifactbundle.zip --checksum 6ffedb055cb9956395d9f435d03d53ebe9f6a8d45106b979d1b7f53358e1dcb4
- name: Build
run: swift build --swift-sdk wasm32-unknown-wasi

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QQ: When to use wasm32-unknown-wasip1-threads?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When we need threading support. It all depends on the WASM interpreter. For this package, I think it's not the case 😃

@pedrovgs pedrovgs merged commit 7f855de into master Jan 16, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants