Skip to content

Commit 64b15ff

Browse files
authored
[Vertex AI] Add CI for visionOS (#13092)
1 parent b51130a commit 64b15ff

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/vertexai.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
spm-unit:
1919
strategy:
2020
matrix:
21-
target: [iOS, macOS, catalyst, tvOS]
21+
target: [iOS, macOS, catalyst, tvOS, visionOS]
2222
os: [macos-14]
2323
include:
2424
- os: macos-14

FirebaseVertexAI/Tests/Unit/PartsRepresentableTests.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import FirebaseVertexAI
1818
import XCTest
1919
#if canImport(UIKit)
2020
import UIKit
21-
#else
21+
#elseif canImport(AppKit)
2222
import AppKit
2323
#endif
2424

@@ -73,7 +73,7 @@ final class PartsRepresentableTests: XCTestCase {
7373
XCTFail("Expected model content from invlaid image to error")
7474
}
7575

76-
#if canImport(UIKit)
76+
#if canImport(UIKit) && !os(visionOS) // These tests are stalling in CI on visionOS.
7777
func testModelContentFromInvalidUIImageThrows() throws {
7878
let image = UIImage()
7979
do {
@@ -103,7 +103,8 @@ final class PartsRepresentableTests: XCTestCase {
103103
let modelContent = try image.tryPartsValue()
104104
XCTAssert(modelContent.count > 0, "Expected non-empty model content for UIImage: \(image)")
105105
}
106-
#else
106+
107+
#elseif canImport(AppKit)
107108
func testModelContentFromNSImageIsNotEmpty() throws {
108109
let coreImage = CIImage(color: CIColor.red)
109110
.cropped(to: CGRect(origin: CGPointZero, size: CGSize(width: 16, height: 16)))

0 commit comments

Comments
 (0)