swiftlang / swiftlang/github-workflows

Add a Wasm workflow

Open
#139 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
115
Forks
57
Avg merge
1d 8h
Merged PRs (30d)
3

Description

Description:

Swift now officially supports WebAssembly (Wasm), so it's a good time to add a workflow for Wasm.

context: https://github.com/apple/swift-argument-parser/pull/794#issuecomment-3045465439

Things to consider:

  • What jobs should we add?
    • Test targets often have dependencies that are difficult to build for Wasm, such as Foundation and Dispatch, and may not be able to build, so a job that simply builds without testing is important.
    • The ability to filter targets in order to build only the library portion is also important. (like swift build --target <target name>)
  • What Swift SDKs should we use?
    • Swift SDK for WebAssembly on swift.org
      • swift-<version>_wasm
      • swift-<version>_wasm-embedded
    • SwiftWasm
      • <version>-wasm32-unknown-wasi
      • <version>-wasm32-unknown-wasi-embedded
      • <version>-wasm32-unknown-wasip1-threads
      • <version>-wasm32-unknown-wasip1-threads-embedded
  • Which Swift versions should we support?
    • Some versions may lack support of some core libraries.

Related issues:

  • #34 (This also requires Swift SDKs.)

Related links:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked context in swift-argument-parser#794 and related issue #34, then compare the Swift SDK options and versions listed in this issue. Define the workflow jobs, including a build-only path and target filtering, and confirm which SDK and Swift versions support them. Done means the repository has a working Wasm workflow with those choices documented or encoded.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift, wasm
Domain
build-system, ci-cd
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.