From ead5d2f8bb1943041a144e0a2fbe73a9ecaeb21e Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Fri, 12 Sep 2025 09:59:32 -0700 Subject: [PATCH] Fix the build on iOS and add CI coverage --- .github/workflows/pull_request.yml | 3 +++ Sources/SWBUtil/Process.swift | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 5497164a..e0012fd0 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -24,6 +24,9 @@ jobs: linux_static_sdk_build_command: SWIFTBUILD_STATIC_LINK=1 LLBUILD_STATIC_LINK=1 swift build enable_macos_checks: true macos_exclude_xcode_versions: "[{\"xcode_version\": \"16.2\"}]" + macos_build_command: + swift test && + /usr/bin/xcrun xcodebuild -workspace . -scheme SwiftBuild-Package -destination generic/platform=iOS cmake-smoke-test: name: cmake-smoke-test uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main diff --git a/Sources/SWBUtil/Process.swift b/Sources/SWBUtil/Process.swift index 6ddd690f..7f119cc6 100644 --- a/Sources/SWBUtil/Process.swift +++ b/Sources/SWBUtil/Process.swift @@ -26,8 +26,8 @@ extension ProcessInfo { #endif #if (!canImport(Foundation.NSTask) || targetEnvironment(macCatalyst)) && canImport(Darwin) -public final class Process { - public enum TerminationReason: Int { +public final class Process: @unchecked Sendable { + public enum TerminationReason: Int, Sendable { case exit = 1 case uncaughtSignal = 2 }