build: download visionOS SDK before CI/CD (#3757)

* build: download visionOS SDK before CI/CD

* Revert "build: download visionOS SDK before CI/CD"

This reverts commit ddbc45f524.

* build: switch to macos-15 runner image

* build: xcode version limit to 16.0
This commit is contained in:
YoloMao 2024-10-08 15:04:55 +08:00 committed by GitHub
parent d68b92db85
commit a261180b95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 13 deletions

View File

@ -9,10 +9,10 @@ on:
jobs:
Release:
name: Release XCFramework
runs-on: macos-14
runs-on: macos-15
env:
CODESIGN_KEY_BASE64: "${{ secrets.CODESIGN_KEY_BASE64 }}"
DEVELOPER_DIR: /Applications/Xcode_15.2.app
DEVELOPER_DIR: /Applications/Xcode_16.0.app
strategy:
fail-fast: true
matrix:

View File

@ -14,9 +14,9 @@ permissions:
jobs:
Lint:
name: Cocoapods Lint
runs-on: macos-14
runs-on: macos-15
env:
DEVELOPER_DIR: /Applications/Xcode_15.2.app
DEVELOPER_DIR: /Applications/Xcode_16.0.app
steps:
- name: Checkout
uses: actions/checkout@v3
@ -40,16 +40,16 @@ jobs:
Demo:
name: Cocoapods Demo
runs-on: macos-14
runs-on: macos-15
env:
DEVELOPER_DIR: /Applications/Xcode_15.2.app
DEVELOPER_DIR: /Applications/Xcode_16.0.app
WORKSPACE_NAME: SDWebImage.xcworkspace
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
iosDestination: platform=iOS Simulator,name=iPhone 15 Pro
iosDestination: platform=iOS Simulator,name=iPhone 16 Pro
macOSDestination: platform=macOS,arch=x86_64
macCatalystDestination: platform=macOS,arch=x86_64,variant=Mac Catalyst
tvOSDestination: platform=tvOS Simulator,name=Apple TV 4K (3rd generation)
watchOSDestination: platform=watchOS Simulator,name=Apple Watch Ultra (49mm)
watchOSDestination: platform=watchOS Simulator,name=Apple Watch Ultra 2 (49mm)
visionOSDestination: platform=visionOS Simulator,name=Apple Vision Pro
steps:
- name: Checkout
@ -94,9 +94,9 @@ jobs:
Test:
name: Unit Test
runs-on: macos-14
runs-on: macos-15
env:
DEVELOPER_DIR: /Applications/Xcode_15.2.app
DEVELOPER_DIR: /Applications/Xcode_16.0.app
WORKSPACE_NAME: SDWebImage.xcworkspace
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# use matrix to generate jobs for each platform
@ -106,7 +106,7 @@ jobs:
platform: [iOS, macOS, tvOS, visionOS]
include:
- platform: iOS
destination: platform=iOS Simulator,name=iPhone 15 Pro
destination: platform=iOS Simulator,name=iPhone 16 Pro
scheme: iOS
flag: ios
- platform: macOS
@ -160,9 +160,9 @@ jobs:
Build:
name: Build Library
runs-on: macos-14
runs-on: macos-15
env:
DEVELOPER_DIR: /Applications/Xcode_15.2.app
DEVELOPER_DIR: /Applications/Xcode_16.0.app
PROJECT_NAME: SDWebImage.xcodeproj
SCHEME_NAME: SDWebImage
steps: