Skip to content

Commit 91662e3

Browse files
authored
Use swiftlang/github-workflows workflow for Wasm (#800)
Resolves #794 (comment)
1 parent c3bdeba commit 91662e3

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

.github/workflows/pull_request.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
windows_exclude_swift_versions: "[{\"swift_version\": \"5.9\"}]"
2828
enable_macos_checks: true
2929
macos_exclude_xcode_versions: "[{\"xcode_version\": \"16.0\"}, {\"xcode_version\": \"16.1\"}]"
30+
enable_wasm_sdk_build: true
31+
wasm_sdk_build_command: swift build --target ArgumentParser
3032

3133
cmake-build:
3234
name: CMake Build
@@ -51,25 +53,6 @@ jobs:
5153
- name: Build
5254
run: cmake --build .cmake-build
5355

54-
wasm-build:
55-
name: Wasm Build
56-
runs-on: ubuntu-latest
57-
container:
58-
image: swift:6.1-noble
59-
steps:
60-
- name: Checkout repo
61-
uses: actions/checkout@v4
62-
- name: Install Swift SDKs for WebAssembly
63-
run: |
64-
# TODO: We can replace these Swift SDKs with the swift.org one once it supports Foundation.
65-
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
66-
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
67-
swift sdk list
68-
- name: Build
69-
run: |
70-
swift build --swift-sdk wasm32-unknown-wasi --target ArgumentParser
71-
swift build --swift-sdk wasm32-unknown-wasip1-threads --target ArgumentParser
72-
7356
soundness:
7457
name: Soundness
7558
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main

0 commit comments

Comments
 (0)