Skip to content
Merged
Show file tree
Hide file tree
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
19 changes: 19 additions & 0 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: wasm

on:
push:
pull_request:

jobs:
build:
name: Build on WebAssembly
runs-on: ubuntu-latest
container:
image: swift:6.0.2-focal
steps:
- uses: actions/checkout@v4
- run: swift sdk install https://github.com/swiftwasm/swift/releases/download/swift-wasm-6.0.2-RELEASE/swift-wasm-6.0.2-RELEASE-wasm32-unknown-wasi.artifactbundle.zip --checksum 6ffedb055cb9956395d9f435d03d53ebe9f6a8d45106b979d1b7f53358e1dcb4
- name: Build
run: swift build --swift-sdk wasm32-unknown-wasi

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QQ: When to use wasm32-unknown-wasip1-threads?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When we need threading support. It all depends on the WASM interpreter. For this package, I think it's not the case 😃

- name: Test
run: swift test --swift-sdk wasm32-unknown-wasi
3 changes: 2 additions & 1 deletion .swiftpm/xcode/xcshareddata/xcschemes/Matft.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand Down
Loading