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: 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 }