Try to re-enable the HEIC encoding test and visionOS xctest
This commit is contained in:
parent
cba8ec9667
commit
f6771d8fcd
|
@ -103,7 +103,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
platform: [iOS, macOS, tvOS]
|
platform: [iOS, macOS, tvOS, visionOS]
|
||||||
include:
|
include:
|
||||||
- platform: iOS
|
- platform: iOS
|
||||||
destination: platform=iOS Simulator,name=iPhone 15 Pro
|
destination: platform=iOS Simulator,name=iPhone 15 Pro
|
||||||
|
@ -117,10 +117,10 @@ jobs:
|
||||||
destination: platform=tvOS Simulator,name=Apple TV 4K (3rd generation)
|
destination: platform=tvOS Simulator,name=Apple TV 4K (3rd generation)
|
||||||
scheme: TV
|
scheme: TV
|
||||||
flag: tvos
|
flag: tvos
|
||||||
# - platform: visionOS
|
- platform: visionOS
|
||||||
# destination: platform=visionOS Simulator,name=Apple Vision Pro
|
destination: platform=visionOS Simulator,name=Apple Vision Pro
|
||||||
# scheme: Vision
|
scheme: Vision
|
||||||
# flag: visionos
|
flag: visionos
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
|
@ -206,7 +206,7 @@
|
||||||
- (void)test13ThatHEICWorks {
|
- (void)test13ThatHEICWorks {
|
||||||
if (@available(iOS 11, tvOS 11, macOS 10.13, *)) {
|
if (@available(iOS 11, tvOS 11, macOS 10.13, *)) {
|
||||||
NSURL *heicURL = [[NSBundle bundleForClass:[self class]] URLForResource:@"TestImage" withExtension:@"heic"];
|
NSURL *heicURL = [[NSBundle bundleForClass:[self class]] URLForResource:@"TestImage" withExtension:@"heic"];
|
||||||
BOOL supportsEncoding = !SDTestCase.isCI; // GitHub Action Mac env currently does not support HEIC encoding
|
BOOL supportsEncoding = YES; // GitHub Action Mac env supported from 20240707.1
|
||||||
[self verifyCoder:[SDImageIOCoder sharedCoder]
|
[self verifyCoder:[SDImageIOCoder sharedCoder]
|
||||||
withLocalImageURL:heicURL
|
withLocalImageURL:heicURL
|
||||||
supportsEncoding:supportsEncoding
|
supportsEncoding:supportsEncoding
|
||||||
|
@ -237,7 +237,7 @@
|
||||||
- (void)test16ThatHEICAnimatedWorks {
|
- (void)test16ThatHEICAnimatedWorks {
|
||||||
if (@available(iOS 13, tvOS 13, macOS 10.15, *)) {
|
if (@available(iOS 13, tvOS 13, macOS 10.15, *)) {
|
||||||
NSURL *heicURL = [[NSBundle bundleForClass:[self class]] URLForResource:@"TestImageAnimated" withExtension:@"heic"];
|
NSURL *heicURL = [[NSBundle bundleForClass:[self class]] URLForResource:@"TestImageAnimated" withExtension:@"heic"];
|
||||||
BOOL supportsEncoding = !SDTestCase.isCI; // GitHub Action Mac env currently does not support HEIC encoding
|
BOOL supportsEncoding = YES; // GitHub Action Mac env supported from 20240707.1
|
||||||
BOOL isAnimatedImage = YES;
|
BOOL isAnimatedImage = YES;
|
||||||
[self verifyCoder:[SDImageHEICCoder sharedCoder]
|
[self verifyCoder:[SDImageHEICCoder sharedCoder]
|
||||||
withLocalImageURL:heicURL
|
withLocalImageURL:heicURL
|
||||||
|
@ -297,7 +297,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)test21ThatEmbedThumbnailHEICWorks {
|
- (void)test21ThatEmbedThumbnailHEICWorks {
|
||||||
BOOL supportsEncoding = !SDTestCase.isCI; // GitHub Action Mac env currently does not support HEIC encoding
|
BOOL supportsEncoding = YES; // GitHub Action Mac env supported from 20240707.1
|
||||||
if (!supportsEncoding) {
|
if (!supportsEncoding) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue