Skip to content

Commit 68d8ce6

Browse files
Use latest snapshot toolchain
1 parent 453b841 commit 68d8ce6

3 files changed

Lines changed: 6 additions & 17 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
JAVASCRIPTKIT_DISABLE_TRACING_TRAIT=1
2222
- os: ubuntu-24.04
2323
toolchain:
24-
download-url: https://download.swift.org/development/ubuntu2404/swift-DEVELOPMENT-SNAPSHOT-2025-12-01-a/swift-DEVELOPMENT-SNAPSHOT-2025-12-01-a-ubuntu24.04.tar.gz
24+
download-url: https://download.swift.org/development/ubuntu2404/swift-DEVELOPMENT-SNAPSHOT-2026-05-27-a/swift-DEVELOPMENT-SNAPSHOT-2026-05-27-a-ubuntu24.04.tar.gz
2525
wasi-backend: Node
2626
target: "wasm32-unknown-wasip1"
2727
- os: ubuntu-24.04
@@ -31,7 +31,7 @@ jobs:
3131
target: "wasm32-unknown-wasip1"
3232
- os: ubuntu-22.04
3333
toolchain:
34-
download-url: https://download.swift.org/development/ubuntu2204/swift-DEVELOPMENT-SNAPSHOT-2025-12-01-a/swift-DEVELOPMENT-SNAPSHOT-2025-12-01-a-ubuntu22.04.tar.gz
34+
download-url: https://download.swift.org/development/ubuntu2204/swift-DEVELOPMENT-SNAPSHOT-2026-05-27-a/swift-DEVELOPMENT-SNAPSHOT-2026-05-27-a-ubuntu22.04.tar.gz
3535
wasi-backend: Node
3636
target: "wasm32-unknown-wasip1-threads"
3737

@@ -152,7 +152,7 @@ jobs:
152152
- uses: actions/checkout@v6
153153
- uses: ./.github/actions/install-swift
154154
with:
155-
download-url: https://download.swift.org/development/ubuntu2204/swift-DEVELOPMENT-SNAPSHOT-2025-09-14-a/swift-DEVELOPMENT-SNAPSHOT-2025-09-14-a-ubuntu22.04.tar.gz
155+
download-url: https://download.swift.org/development/ubuntu2204/swift-DEVELOPMENT-SNAPSHOT-2026-05-27-a/swift-DEVELOPMENT-SNAPSHOT-2026-05-27-a-ubuntu22.04.tar.gz
156156
- run: make bootstrap
157157
- run: ./Utilities/bridge-js-generate.sh
158158
- name: Check if BridgeJS generated files are up-to-date
@@ -169,7 +169,7 @@ jobs:
169169
- uses: actions/checkout@v6
170170
- uses: ./.github/actions/install-swift
171171
with:
172-
download-url: https://download.swift.org/development/ubuntu2204/swift-DEVELOPMENT-SNAPSHOT-2026-03-09-a/swift-DEVELOPMENT-SNAPSHOT-2026-03-09-a-ubuntu22.04.tar.gz
172+
download-url: https://download.swift.org/development/ubuntu2204/swift-DEVELOPMENT-SNAPSHOT-2026-05-27-a/swift-DEVELOPMENT-SNAPSHOT-2026-05-27-a-ubuntu22.04.tar.gz
173173
- uses: swiftwasm/setup-swiftwasm@v2
174174
id: setup-wasm32-unknown-wasip1
175175
with: { target: wasm32-unknown-wasip1 }

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ unittest:
1616
echo "SWIFT_SDK_ID is not set. Run 'swift sdk list' and pass a matching SDK, e.g. 'make unittest SWIFT_SDK_ID=<id>'."; \
1717
exit 2; \
1818
}
19-
swift package --swift-sdk "$(SWIFT_SDK_ID)" \
19+
swift package --build-system native --swift-sdk "$(SWIFT_SDK_ID)" \
2020
$(TRACING_ARGS) \
2121
--disable-sandbox \
2222
js test --prelude ./Tests/prelude.mjs -Xnode --expose-gc

Sources/JavaScriptEventLoop/JavaScriptEventLoop+ExecutorFactory.swift

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,8 @@ extension JavaScriptEventLoop: SchedulingExecutor {
6363
} else if let _ = clock as? SuspendingClock {
6464
duration = delay as! SuspendingClock.Duration
6565
} else {
66-
#if compiler(>=6.4)
67-
// Hand-off the scheduling work to Clock implementation for unknown clocks.
68-
// Clock.enqueue is only available in the development branch (6.4+).
69-
clock.enqueue(
70-
job,
71-
on: self,
72-
at: clock.now.advanced(by: delay),
73-
tolerance: tolerance
74-
)
75-
return
76-
#else
7766
fatalError("Unsupported clock type; only ContinuousClock and SuspendingClock are supported")
78-
#endif // #if compiler(>=6.4) (non-Embedded)
67+
return
7968
}
8069
let milliseconds = Self.delayInMilliseconds(from: duration)
8170
self.enqueue(

0 commit comments

Comments
 (0)