Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use macos-13 & Xcode 15.2 #298

Merged
merged 2 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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" \
Expand Down
28 changes: 21 additions & 7 deletions .github/workflows/spm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,19 @@ 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:
Expand All @@ -32,6 +36,7 @@ jobs:

- name: Build
run: |
set -o pipefail
xcodebuild build -scheme GrowingAutotracker -destination 'platform=macOS,variant=Mac Catalyst' \
| xcbeautify --renderer github-actions

Expand All @@ -44,7 +49,8 @@ jobs:

- 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:
Expand All @@ -56,6 +62,7 @@ jobs:

- name: Build
run: |
set -o pipefail
xcodebuild build -scheme GrowingTracker -destination 'platform=macOS,variant=Mac Catalyst' \
| xcbeautify --renderer github-actions

Expand All @@ -68,6 +75,7 @@ jobs:

- name: Build
run: |
set -o pipefail
xcodebuild build -scheme GrowingTracker -destination 'platform=macOS' \
| xcbeautify --renderer github-actions

Expand All @@ -80,7 +88,8 @@ jobs:

- 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:
Expand All @@ -92,7 +101,8 @@ jobs:

- 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:
Expand All @@ -104,6 +114,7 @@ jobs:

- name: Build
run: |
set -o pipefail
xcodebuild build -scheme GrowingModule_APM -destination 'platform=macOS,variant=Mac Catalyst' \
| xcbeautify --renderer github-actions

Expand All @@ -116,7 +127,8 @@ jobs:

- 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:
Expand All @@ -128,6 +140,7 @@ jobs:

- name: Build
run: |
set -o pipefail
xcodebuild build -scheme GrowingModule_Hybrid -destination 'platform=macOS,variant=Mac Catalyst' \
| xcbeautify --renderer github-actions

Expand All @@ -140,5 +153,6 @@ jobs:

- 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
Loading