Skip to content

Use swiftlang/github-workflows' workflow for Wasm #800

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
21 changes: 2 additions & 19 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
windows_exclude_swift_versions: "[{\"swift_version\": \"5.9\"}]"
enable_macos_checks: true
macos_exclude_xcode_versions: "[{\"xcode_version\": \"16.0\"}, {\"xcode_version\": \"16.1\"}]"
enable_wasm_sdk_build: true
wasm_sdk_build_command: swift build --target ArgumentParser

cmake-build:
name: CMake Build
Expand All @@ -51,25 +53,6 @@ jobs:
- name: Build
run: cmake --build .cmake-build

wasm-build:
name: Wasm Build
runs-on: ubuntu-latest
container:
image: swift:6.1-noble
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 list
- name: Build
run: |
swift build --swift-sdk wasm32-unknown-wasi --target ArgumentParser
swift build --swift-sdk wasm32-unknown-wasip1-threads --target ArgumentParser

soundness:
name: Soundness
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
Expand Down