[github action] Bumped to macos-14 and remove the unused visionOS download toolchain steps

This commit is contained in:
DreamPiggy 2024-02-23 16:16:14 +08:00
parent 80c8b2023a
commit 23b0751ac8
1 changed files with 4 additions and 28 deletions

View File

@ -14,19 +14,13 @@ permissions:
jobs: jobs:
Lint: Lint:
name: Cocoapods Lint name: Cocoapods Lint
runs-on: macos-13 runs-on: macos-14
env: env:
DEVELOPER_DIR: /Applications/Xcode_15.2.app DEVELOPER_DIR: /Applications/Xcode_15.2.app
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Prepare VisionOS
run: |
defaults write com.apple.dt.Xcode AllowUnsupportedVisionOSHost -bool YES
defaults write com.apple.CoreSimulator AllowUnsupportedVisionOSHost -bool YES
xcodebuild -downloadPlatform visionOS
- name: Install Cocoapods - name: Install Cocoapods
run: gem install cocoapods --no-document --quiet run: gem install cocoapods --no-document --quiet
@ -46,7 +40,7 @@ jobs:
Demo: Demo:
name: Cocoapods Demo name: Cocoapods Demo
runs-on: macos-13 runs-on: macos-14
env: env:
DEVELOPER_DIR: /Applications/Xcode_15.2.app DEVELOPER_DIR: /Applications/Xcode_15.2.app
WORKSPACE_NAME: SDWebImage.xcworkspace WORKSPACE_NAME: SDWebImage.xcworkspace
@ -61,12 +55,6 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Prepare VisionOS
run: |
defaults write com.apple.dt.Xcode AllowUnsupportedVisionOSHost -bool YES
defaults write com.apple.CoreSimulator AllowUnsupportedVisionOSHost -bool YES
xcodebuild -downloadPlatform visionOS
- name: Install Cocoapods - name: Install Cocoapods
run: gem install cocoapods --no-document --quiet run: gem install cocoapods --no-document --quiet
@ -106,7 +94,7 @@ jobs:
Test: Test:
name: Unit Test name: Unit Test
runs-on: macos-13 runs-on: macos-14
env: env:
DEVELOPER_DIR: /Applications/Xcode_15.2.app DEVELOPER_DIR: /Applications/Xcode_15.2.app
WORKSPACE_NAME: SDWebImage.xcworkspace WORKSPACE_NAME: SDWebImage.xcworkspace
@ -121,12 +109,6 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Prepare VisionOS
run: |
defaults write com.apple.dt.Xcode AllowUnsupportedVisionOSHost -bool YES
defaults write com.apple.CoreSimulator AllowUnsupportedVisionOSHost -bool YES
xcodebuild -downloadPlatform visionOS
- name: Install Cocoapods - name: Install Cocoapods
run: gem install cocoapods --no-document --quiet run: gem install cocoapods --no-document --quiet
@ -180,7 +162,7 @@ jobs:
Build: Build:
name: Build Library name: Build Library
runs-on: macos-13 runs-on: macos-14
env: env:
DEVELOPER_DIR: /Applications/Xcode_15.2.app DEVELOPER_DIR: /Applications/Xcode_15.2.app
PROJECT_NAME: SDWebImage.xcodeproj PROJECT_NAME: SDWebImage.xcodeproj
@ -189,12 +171,6 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Prepare VisionOS
run: |
defaults write com.apple.dt.Xcode AllowUnsupportedVisionOSHost -bool YES
defaults write com.apple.CoreSimulator AllowUnsupportedVisionOSHost -bool YES
xcodebuild -downloadPlatform visionOS
- name: Build the SwiftPM - name: Build the SwiftPM
run: | run: |
set -o pipefail set -o pipefail