-
-
Notifications
You must be signed in to change notification settings - Fork 5
ci: Add WebAssembly build step to CI workflow #232
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
base: main
Are you sure you want to change the base?
Changes from 19 commits
d3819d2
657b34a
0d4b117
789c267
f062605
21510ca
4e5563d
d4936b1
430fe7d
a2878c5
aba6e0f
b7b9d60
ec9dd09
847cb43
cadb9bf
b192acd
91b5dd8
730b8ae
9da2fec
1cdee1c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -175,6 +175,18 @@ jobs: | |||||||||||||||
| build-tests: true | ||||||||||||||||
| run-tests: false | ||||||||||||||||
|
|
||||||||||||||||
| wasm: | ||||||||||||||||
| timeout-minutes: 10 | ||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||
| # container: swift:6.2.3 | ||||||||||||||||
| steps: | ||||||||||||||||
| - uses: actions/checkout@v6 | ||||||||||||||||
| - uses: swiftwasm/setup-swiftwasm@v2 | ||||||||||||||||
| with: | ||||||||||||||||
| target: "wasm32-unknown-wasip1-threads" | ||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider using the recommended The Using the nightly-only threads target means this CI job depends on nightly SDK availability and may break with stable releases. Since the PR objective is to verify that Parse-Swift builds for WASM (not to exercise threading), the stable 💪 SMASH this into a stable target! - uses: swiftwasm/setup-swiftwasm@v2
with:
- target: "wasm32-unknown-wasip1-threads"
+ target: "wasm32-unknown-wasi"
- name: Build
- run: swift build --swift-sdk wasm32-unknown-wasip1-threads
+ run: swift build --swift-sdk wasm32-unknown-wasi📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||
| - name: Build | ||||||||||||||||
| run: swift build --swift-sdk wasm32-unknown-wasip1-threads | ||||||||||||||||
|
Comment on lines
+178
to
+188
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: curl -s "https://raw.githubusercontent.com/swiftwasm/setup-swiftwasm/v2/action.yml" 2>/dev/null | head -60Repository: netreconlab/Parse-Swift Length of output: 900 🌐 Web query:
💡 Result:
On Ubuntu GitHub Actions, use:
Example workflow (Ubuntu): jobs:
wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# 1) Install Swift toolchain
- uses: swift-actions/setup-swift@v2
with:
swift-version: "6.2.3" # match the SDK version you install
# 2) Install the Wasm Swift SDK
- name: Install Wasm Swift SDK
run: |
swift sdk install \
https://download.swift.org/swift-6.2.3-release/wasm-sdk/swift-6.2.3-RELEASE/swift-6.2.3-RELEASE_wasm.artifactbundle.tar.gz \
--checksum 394040ecd5260e68bb02f6c20aeede733b9b90702c2204e178f3e42413edad2a
swift sdk list
# Build targeting Wasm
- name: Build (Wasm)
run: swift build --swift-sdk swift-6.2.3-RELEASE_wasmNotes:
Sources 🌐 Web query:
💡 Result: Yes—SwiftWasm supports the Related: Swift’s WASI triple was renamed from Sources: [1] [2] My Young Hero, your workflow has fallen behind! The SwiftWasm approach must EVOLVE — Plus Ultra! The
To unleash Plus Ultra power, choose ONE path:
Additionally, remove the dead comment 🤖 Prompt for AI Agents |
||||||||||||||||
|
|
||||||||||||||||
|
cbaker6 marked this conversation as resolved.
|
||||||||||||||||
| windows: | ||||||||||||||||
| timeout-minutes: 15 | ||||||||||||||||
| runs-on: windows-latest | ||||||||||||||||
|
|
||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.