From 190b8cc4d619f147fbcaa5b6e8e4a3c491574351 Mon Sep 17 00:00:00 2001 From: Alexandr Romanov Date: Sun, 10 Nov 2024 21:28:35 +0300 Subject: [PATCH 1/2] Fix watchOS #patch --- Sources/OversizeCore/Extensions/Image/UIImage+Extension.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/OversizeCore/Extensions/Image/UIImage+Extension.swift b/Sources/OversizeCore/Extensions/Image/UIImage+Extension.swift index c5fde50..6ae6343 100644 --- a/Sources/OversizeCore/Extensions/Image/UIImage+Extension.swift +++ b/Sources/OversizeCore/Extensions/Image/UIImage+Extension.swift @@ -7,7 +7,7 @@ import UIKit #endif -#if canImport(UIKit) +#if canImport(UIKit) && !os(watchOS) public extension UIImage { var averageColor: UIColor? { guard let inputImage = CIImage(image: self) else { return nil } From 59aac5e4b40f432d1a02672034ef6a7db2621cf0 Mon Sep 17 00:00:00 2001 From: Alexandr Romanov Date: Sun, 10 Nov 2024 21:31:05 +0300 Subject: [PATCH 2/2] Update CI --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03e1676..20fdd34 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,8 +11,16 @@ jobs: build-swiftpm: name: Build SwiftPM uses: oversizedev/GithubWorkflows/.github/workflows/build-swiftpm.yml@main + strategy: + matrix: + destination: + - platform=iOS Simulator,name=iPhone 16,OS=18.1 + - platform=watchOS Simulator,name=Apple Watch SE (40mm) (2nd generation),OS=11.1 + - platform=tvOS Simulator,name=Apple TV 4K (3rd generation) (at 1080p),OS=18.1 + - platform=macOS,arch=arm64 with: package: "OversizeCore" + destination: ${{ matrix.destination }} secrets: inherit tests: