@@ -12,15 +12,18 @@ permissions:
1212 checks : write
1313 id-token : write
1414
15+ env :
16+ XCODE_VERSION : " 16.4"
17+
1518jobs :
1619 pod-lint :
17- runs-on : macOS-13
20+ runs-on : macOS-15
1821 steps :
1922 - name : Checkout
2023 uses : actions/checkout@v4
2124
2225 - name : Select Xcode
23- run : sudo xcode-select -s /Applications/Xcode_15.2 .app
26+ run : sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }} .app
2427
2528 - name : Update xcodeproj gem
2629 run : sudo gem install xcodeproj
@@ -34,44 +37,53 @@ jobs:
3437 - name : Undo twitter change to podspec
3538 run : git checkout *.podspec
3639
37- carthage -build :
38- runs-on : macOS-13
40+ xcode -build :
41+ runs-on : macOS-15
3942 steps :
4043 - name : Checkout
4144 uses : actions/checkout@v4
4245
4346 - name : Select Xcode
44- run : sudo xcode-select -s /Applications/Xcode_15.2.app
45-
46- - name : Build with Carthage
47- run : ./Scripts/carthage.sh build --no-skip-current || true
48-
49- - name : Carthage archive
50- run : carthage archive mParticle_Apple_SDK && carthage archive mParticle_Apple_SDK_NoLocation
47+ run : sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }}.app
5148
52- - name : Verify carthage products
53- run : ls 2>&1 | grep .framework.zip
49+ - name : Build SDK
50+ run : |
51+ set -o pipefail
52+ xcodebuild \
53+ -project "mParticle-Apple-SDK.xcodeproj" \
54+ -scheme "mParticle-Apple-SDK" \
55+ -destination "generic/platform=iOS" \
56+ clean build | xcpretty
57+
58+ - name : Build SDK NoLocation
59+ run : |
60+ set -o pipefail
61+ xcodebuild \
62+ -project "mParticle-Apple-SDK.xcodeproj" \
63+ -scheme "mParticle-Apple-SDK-NoLocation" \
64+ -destination "generic/platform=iOS" \
65+ clean build | xcpretty
5466
5567 run-analyzer :
56- runs-on : macOS-13
68+ runs-on : macOS-15
5769 steps :
5870 - name : Checkout
5971 uses : actions/checkout@v4
6072
6173 - name : Select Xcode
62- run : sudo xcode-select -s /Applications/Xcode_15.2 .app
74+ run : sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }} .app
6375
6476 - name : Run static analyzer
6577 run : |
66- bash -c '! (set -o pipefail && xcodebuild -project "mParticle-Apple-SDK.xcodeproj" -scheme "mParticle-Apple-SDK" -sdk iphonesimulator -configuration Debug -destination "platform=iOS Simulator,name=iPhone 14 ,OS=latest" clean analyze | grep -v "warning: The iOS Simulator deployment target" | grep -B3 "warning")'
78+ bash -c '! (set -o pipefail && xcodebuild -project "mParticle-Apple-SDK.xcodeproj" -scheme "mParticle-Apple-SDK" -sdk iphonesimulator -configuration Debug -destination "platform=iOS Simulator,name=iPhone 16 Pro ,OS=latest" clean analyze | grep -v "warning: The iOS Simulator deployment target" | grep -v "warning: Metadata extraction skipped " | grep -B3 "warning")'
6779
6880 pr-notify :
6981 if : >
7082 github.event_name == 'pull_request' &&
7183 github.event.pull_request.draft == false
7284 needs :
7385 - pod-lint
74- - carthage -build
86+ - xcode -build
7587 - run-analyzer
7688 name : Notify GChat
7789 uses : ROKT/rokt-workflows/.github/workflows/oss_pr_opened_notification.yml@main
0 commit comments