Skip to content

Use official Swift SDK for Wasm in pull_request.yml #798

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

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,18 @@ jobs:
name: Wasm Build
runs-on: ubuntu-latest
container:
image: swift:6.1-noble
# pinned nightly-6.2-noble with `swift-6.2-DEVELOPMENT-SNAPSHOT-2025-07-23-a` for Wasm Swift SDK
image: swiftlang/swift:nightly-6.2-noble@sha256:cc6ee97537f601b344dfe02071e91b0952212bba377ece463f1c2737984c06c2
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Swift SDKs for WebAssembly
run: |
# TODO: We can replace these Swift SDKs with the swift.org one once it supports Foundation.
swift sdk install https://github.com/swiftwasm/swift/releases/download/swift-wasm-6.1-RELEASE/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle.zip --checksum 7550b4c77a55f4b637c376f5d192f297fe185607003a6212ad608276928db992
swift sdk install https://github.com/swiftwasm/swift/releases/download/swift-wasm-6.1-RELEASE/swift-wasm-6.1-RELEASE-wasm32-unknown-wasip1-threads.artifactbundle.zip --checksum 0dd273be28741f8e1eb00682c39bdc956361ed24b5572e183dd8a4e9d1c5f6ec
swift sdk install https://download.swift.org/swift-6.2-branch/wasm-sdk/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-07-23-a/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-07-23-a_wasm.artifactbundle.tar.gz --checksum 0294f106efcf4ca8944da5284b7a12825e9c4ca1316daa3f45d05ea0f65bedff
swift sdk list
- name: Build
run: |
swift build --swift-sdk wasm32-unknown-wasi --target ArgumentParser
swift build --swift-sdk wasm32-unknown-wasip1-threads --target ArgumentParser
swift build --swift-sdk swift-6.2-DEVELOPMENT-SNAPSHOT-2025-07-23-a_wasm --target ArgumentParser

soundness:
name: Soundness
Expand Down