-
Notifications
You must be signed in to change notification settings - Fork 12
feat: Add swift wasm CI targets to DataLoader #26
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 all commits
7c9c638
cbffe10
5885cf5
d0dbb2c
5d00ea9
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: wasm | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
# NOTE: swift tests won't compile due to usage | ||
# of NIOPosix. But we can at least test that wasm compilation | ||
# works, to prevent future breakages. | ||
wasm: | ||
name: Test wasm compilation | ||
runs-on: ubuntu-latest | ||
container: swift:6.1.0 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: swiftwasm/setup-swiftwasm@v2 | ||
with: | ||
target: "wasm32-unknown-wasip1-threads" | ||
- run: swift build --swift-sdk wasm32-unknown-wasip1-threads |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// swift-tools-version:5.8 | ||
// swift-tools-version:5.10.0 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
@@ -13,7 +13,10 @@ let package = Package( | |
dependencies: [ | ||
.package(url: "https://github.com/apple/swift-algorithms.git", from: "1.0.0"), | ||
.package(url: "https://github.com/adam-fowler/async-collections", from: "0.0.1"), | ||
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"), | ||
|
||
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. This PR should NOT be merged until apple/swift-nio#3271 is merged and released. This needs updated with the latest swift nio version once 3271 is merged and in a release. 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. The nio PR is merged now, but still need a new swift-nio release containing the change. Until then, can't have a new minimum version with correct Package.resolved values. |
||
// TODO: SM: Revert before merging. Temporarily using PL nio to test fix for NIOCore. | ||
// .package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"), | ||
.package(url: "https://github.com/PassiveLogic/swift-nio.git", branch: "main"), | ||
], | ||
targets: [ | ||
.target( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note, this is likely a breaking change for users of this repository.