Skip to content

Commit ef76c34

Browse files
committed
wip
1 parent 1d467ee commit ef76c34

File tree

10 files changed

+30
-38
lines changed

10 files changed

+30
-38
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -76,31 +76,36 @@ jobs:
7676
# run: CONFIG=${{ matrix.config }} make build-for-static-stdlib
7777

7878
# NB: Downloading the toolchain gets rate-limited by GitHub
79-
# wasm:
80-
# name: Wasm
81-
# runs-on: macos-14
82-
# steps:
83-
# - uses: actions/checkout@v4
84-
# - name: Select Xcode
85-
# run: sudo xcode-select -s /Applications/Xcode_15.4.app
86-
# - name: Select Swift version
87-
# run: echo 'wasm-DEVELOPMENT-SNAPSHOT-2024-07-08-a' > .swift-version
88-
# - name: Build
89-
# run: swift run carton bundle
90-
9179
wasm:
92-
name: SwiftWasm
93-
runs-on: ubuntu-latest
80+
name: Wasm
81+
runs-on: macos-14
9482
steps:
95-
- uses: actions/checkout@v4
96-
- uses: bytecodealliance/actions/wasmtime/setup@v1
97-
- uses: swiftwasm/setup-swiftwasm@v1
83+
- name: Cache Gradle packages
84+
uses: actions/cache@v3
9885
with:
99-
swift-version: "wasm-DEVELOPMENT-SNAPSHOT-2024-07-16-a"
100-
- name: Build tests
101-
run: swift build --triple wasm32-unknown-wasi --build-tests
102-
- name: Run tests
103-
run: wasmtime .build/debug/swift-custom-dumpPackageTests.wasm
86+
path: |
87+
~/Library/Developer/Toolchains
88+
- uses: actions/checkout@v4
89+
- name: Select Xcode
90+
run: sudo xcode-select -s /Applications/Xcode_15.4.app
91+
- name: Select Swift version
92+
run: echo 'wasm-DEVELOPMENT-SNAPSHOT-2024-07-08-a' > .swift-version
93+
- name: Build
94+
run: swift run carton bundle
95+
96+
# wasm:
97+
# name: SwiftWasm
98+
# runs-on: ubuntu-latest
99+
# steps:
100+
# - uses: actions/checkout@v4
101+
# - uses: bytecodealliance/actions/wasmtime/setup@v1
102+
# - uses: swiftwasm/setup-swiftwasm@v1
103+
# with:
104+
# swift-version: "wasm-DEVELOPMENT-SNAPSHOT-2024-07-16-a"
105+
# - name: Build tests
106+
# run: swift build --triple wasm32-unknown-wasi --build-tests
107+
# - name: Run tests
108+
# run: wasmtime .build/debug/swift-custom-dumpPackageTests.wasm
104109

105110
# windows:
106111
# name: Windows

Sources/IssueReporting/Internal/AppHostWarning.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#if canImport(Foundation)
21
import Foundation
32

43
extension String? {
@@ -78,4 +77,3 @@ extension String {
7877
}
7978
#endif
8079
}
81-
#endif

Sources/IssueReporting/Internal/FailureObserver.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#if canImport(Foundation)
21
import Foundation
32

43
@usableFromInline
@@ -20,4 +19,3 @@ final class FailureObserver: @unchecked Sendable {
2019
return body(&count)
2120
}
2221
}
23-
#endif

Sources/IssueReporting/Internal/LockIsolated.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#if canImport(Foundation)
21
import Foundation
32

43
@usableFromInline
@@ -20,4 +19,3 @@ final class LockIsolated<Value>: @unchecked Sendable {
2019
return try operation(&value)
2120
}
2221
}
23-
#endif

Sources/IssueReporting/Internal/SwiftTesting.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import Foundation
2+
13
#if canImport(WinSDK)
24
import WinSDK
35
#endif
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
#if canImport(Foundation)
21
#if os(Linux)
32
@preconcurrency import Foundation
43
#else
54
import Foundation
65
#endif
7-
#endif
86

97
#if canImport(WinSDK)
108
import WinSDK
119
#endif
1210

1311
@usableFromInline
1412
func printError(_ message: String) {
15-
#if canImport(Foundation)
1613
fputs("\(message)\n", stderr)
17-
#endif
1814
}

Sources/IssueReporting/Internal/XCTest.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#if canImport(Foundation)
21
#if _runtime(_ObjC)
32
import Foundation
43
#endif
@@ -125,4 +124,3 @@ func _XCTExpectFailure<R>(
125124
@TaskLocal public static var isInFailingBlock = false
126125
}
127126
#endif
128-
#endif

Sources/IssueReporting/IssueReporters/RuntimeWarningReporter.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#if canImport(Foundation)
21
import Foundation
3-
#endif
42

53
#if canImport(os)
64
import os

Sources/XCTestDynamicOverlay/Internal/Deprecations.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#if canImport(Foundation)
21
import Foundation
3-
#endif
42

53
#if canImport(FoundationNetworking)
64
import FoundationNetworking

Tests/XCTestDynamicOverlayTests/TestHelpers.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Foundation
12
import XCTestDynamicOverlay
23

34
func MyXCTFail(_ message: String) {

0 commit comments

Comments
 (0)