From a261180b95a54f6a763b689dea78e5c507822b64 Mon Sep 17 00:00:00 2001 From: YoloMao Date: Tue, 8 Oct 2024 15:04:55 +0800 Subject: [PATCH] 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 ddbc45f5242f43361383640be44438882031e24e. * build: switch to macos-15 runner image * build: xcode version limit to 16.0 --- .github/workflows/CD.yml | 4 ++-- .github/workflows/CI.yml | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 9605e024..476fb0ac 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -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: diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e248c955..577d775e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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: