From 9fbf0a06308841f15f9b4068f14545e9edb26197 Mon Sep 17 00:00:00 2001 From: YoloMao Date: Thu, 25 Jan 2024 15:40:58 +0800 Subject: [PATCH] ci: use macos-13 & Xcode 15.2 (#298) * ci: use macos-13 & Xcode 15.2 * ci: use macos-13 & Xcode 15.2 --- .github/workflows/ci.yml | 7 +++- .github/workflows/spm.yml | 78 ++++++++++++++++++++++++++++++--------- 2 files changed, 66 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index afb23002b..24325195b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,11 +12,14 @@ concurrency: jobs: build: - runs-on: macos-latest + runs-on: macos-13 env: DERIVED_DATA: $HOME/.DerivedData steps: + - name: Force Xcode 15 + run: sudo xcode-select -switch /Applications/Xcode_15.2.app + - name: Checkout Repo uses: actions/checkout@v3 with: @@ -42,7 +45,7 @@ jobs: xcodebuild test -workspace Example/GrowingAnalytics.xcworkspace \ -scheme GrowingAnalyticsTests \ -testPlan GrowingAnalyticsTests \ - -destination 'platform=iOS Simulator,name=iPhone 14' \ + -destination 'platform=iOS Simulator,name=iPhone 15 Pro Max' \ -enableCodeCoverage YES \ -derivedDataPath ${{ env.DERIVED_DATA }} \ OTHER_CFLAGS="\$(inherited) -gen-cdb-fragment-path ${{ env.DERIVED_DATA }}/compilation-database" \ diff --git a/.github/workflows/spm.yml b/.github/workflows/spm.yml index c8db4b030..2cb5d7139 100644 --- a/.github/workflows/spm.yml +++ b/.github/workflows/spm.yml @@ -12,133 +12,177 @@ concurrency: jobs: autotracker-build-iOS: - runs-on: macos-latest + runs-on: macos-13 steps: + - name: Force Xcode 15 + run: sudo xcode-select -switch /Applications/Xcode_15.2.app + - name: Checkout Repo uses: actions/checkout@v3 - name: Build run: | - xcodebuild build -scheme GrowingAutotracker -destination 'platform=iOS Simulator,name=iPhone 14' \ + set -o pipefail + xcodebuild build -scheme GrowingAutotracker -destination 'platform=iOS Simulator,name=iPhone 15 Pro Max' \ | xcbeautify --renderer github-actions autotracker-build-catalyst: - runs-on: macos-latest + runs-on: macos-13 steps: + - name: Force Xcode 15 + run: sudo xcode-select -switch /Applications/Xcode_15.2.app + - name: Checkout Repo uses: actions/checkout@v3 - name: Build run: | + set -o pipefail xcodebuild build -scheme GrowingAutotracker -destination 'platform=macOS,variant=Mac Catalyst' \ | xcbeautify --renderer github-actions tracker-build-iOS: - runs-on: macos-latest + runs-on: macos-13 steps: + - name: Force Xcode 15 + run: sudo xcode-select -switch /Applications/Xcode_15.2.app + - name: Checkout Repo uses: actions/checkout@v3 - name: Build run: | - xcodebuild build -scheme GrowingTracker -destination 'platform=iOS Simulator,name=iPhone 14' \ + set -o pipefail + xcodebuild build -scheme GrowingTracker -destination 'platform=iOS Simulator,name=iPhone 15 Pro Max' \ | xcbeautify --renderer github-actions tracker-build-catalyst: - runs-on: macos-latest + runs-on: macos-13 steps: + - name: Force Xcode 15 + run: sudo xcode-select -switch /Applications/Xcode_15.2.app + - name: Checkout Repo uses: actions/checkout@v3 - name: Build run: | + set -o pipefail xcodebuild build -scheme GrowingTracker -destination 'platform=macOS,variant=Mac Catalyst' \ | xcbeautify --renderer github-actions tracker-build-macos: - runs-on: macos-latest + runs-on: macos-13 steps: + - name: Force Xcode 15 + run: sudo xcode-select -switch /Applications/Xcode_15.2.app + - name: Checkout Repo uses: actions/checkout@v3 - name: Build run: | + set -o pipefail xcodebuild build -scheme GrowingTracker -destination 'platform=macOS' \ | xcbeautify --renderer github-actions ads-build-iOS: - runs-on: macos-latest + runs-on: macos-13 steps: + - name: Force Xcode 15 + run: sudo xcode-select -switch /Applications/Xcode_15.2.app + - name: Checkout Repo uses: actions/checkout@v3 - name: Build run: | - xcodebuild build -scheme GrowingModule_Ads -destination 'platform=iOS Simulator,name=iPhone 14' \ + set -o pipefail + xcodebuild build -scheme GrowingModule_Ads -destination 'platform=iOS Simulator,name=iPhone 15 Pro Max' \ | xcbeautify --renderer github-actions apm-build-iOS: - runs-on: macos-latest + runs-on: macos-13 steps: + - name: Force Xcode 15 + run: sudo xcode-select -switch /Applications/Xcode_15.2.app + - name: Checkout Repo uses: actions/checkout@v3 - name: Build run: | - xcodebuild build -scheme GrowingModule_APM -destination 'platform=iOS Simulator,name=iPhone 14' \ + set -o pipefail + xcodebuild build -scheme GrowingModule_APM -destination 'platform=iOS Simulator,name=iPhone 15 Pro Max' \ | xcbeautify --renderer github-actions apm-build-catalyst: - runs-on: macos-latest + runs-on: macos-13 steps: + - name: Force Xcode 15 + run: sudo xcode-select -switch /Applications/Xcode_15.2.app + - name: Checkout Repo uses: actions/checkout@v3 - name: Build run: | + set -o pipefail xcodebuild build -scheme GrowingModule_APM -destination 'platform=macOS,variant=Mac Catalyst' \ | xcbeautify --renderer github-actions hybrid-build-iOS: - runs-on: macos-latest + runs-on: macos-13 steps: + - name: Force Xcode 15 + run: sudo xcode-select -switch /Applications/Xcode_15.2.app + - name: Checkout Repo uses: actions/checkout@v3 - name: Build run: | - xcodebuild build -scheme GrowingModule_Hybrid -destination 'platform=iOS Simulator,name=iPhone 14' \ + set -o pipefail + xcodebuild build -scheme GrowingModule_Hybrid -destination 'platform=iOS Simulator,name=iPhone 15 Pro Max' \ | xcbeautify --renderer github-actions hybrid-build-catalyst: - runs-on: macos-latest + runs-on: macos-13 steps: + - name: Force Xcode 15 + run: sudo xcode-select -switch /Applications/Xcode_15.2.app + - name: Checkout Repo uses: actions/checkout@v3 - name: Build run: | + set -o pipefail xcodebuild build -scheme GrowingModule_Hybrid -destination 'platform=macOS,variant=Mac Catalyst' \ | xcbeautify --renderer github-actions imp-build-iOS: - runs-on: macos-latest + runs-on: macos-13 steps: + - name: Force Xcode 15 + run: sudo xcode-select -switch /Applications/Xcode_15.2.app + - name: Checkout Repo uses: actions/checkout@v3 - name: Build run: | - xcodebuild build -scheme GrowingModule_ImpressionTrack -destination 'platform=iOS Simulator,name=iPhone 14' \ + set -o pipefail + xcodebuild build -scheme GrowingModule_ImpressionTrack -destination 'platform=iOS Simulator,name=iPhone 15 Pro Max' \ | xcbeautify --renderer github-actions