Skip to content

Commit ab67dc2

Browse files
committed
Fix the build on iOS and add CI coverage
1 parent de0261d commit ab67dc2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/pull_request.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ jobs:
1717
linux_pre_build_command: ./.github/scripts/linux_pre_build.sh
1818
linux_build_command: 'swift test --no-parallel'
1919
linux_swift_versions: '["nightly-main", "nightly-6.2"]'
20+
enable_macos_checks: true
21+
macos_xcode_versions: '["16.3"]'
22+
macos_build_command:
23+
swift test --no-parallel && \
24+
xcrun xcodebuild -workspace . -scheme SwiftBuild-Package -destination generic/platform=iOS
2025
windows_pre_build_command: 'Invoke-Program .\.github\scripts\windows_pre_build.ps1'
2126
windows_swift_versions: '["nightly-main"]'
2227
windows_build_command: 'Invoke-Program swift test --no-parallel'

Sources/SWBUtil/Process.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ extension ProcessInfo {
2626
#endif
2727

2828
#if (!canImport(Foundation.NSTask) || targetEnvironment(macCatalyst)) && canImport(Darwin)
29-
public final class Process {
30-
public enum TerminationReason: Int {
29+
public final class Process: @unchecked Sendable {
30+
public enum TerminationReason: Int, Sendable {
3131
case exit = 1
3232
case uncaughtSignal = 2
3333
}

0 commit comments

Comments
 (0)