@@ -19,10 +19,17 @@ concurrency:
1919 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
2020 cancel-in-progress : true
2121
22+ env :
23+ destination : " platform=iOS Simulator,name=iPhone 15 Pro,OS=latest"
24+ configuration : " Debug"
25+ noIndex : " COMPILER_INDEX_STORE_ENABLE=NO"
26+ noSigning : " CODE_SIGNING_ALLOWED=NO"
27+ versionXcode : " 15.2"
28+
2229jobs :
2330 analyze :
2431 name : Analyze
25- runs-on : [ macos-latest ]
32+ runs-on : [ macos-13-large ]
2633 permissions :
2734 actions : read
2835 contents : read
@@ -45,24 +52,37 @@ jobs:
4552 with :
4653 languages : ${{ matrix.language }}
4754 queries : security-and-quality
48-
55+
56+ - name : Select Xcode
57+ run : |
58+ sudo xcode-select -switch /Applications/Xcode_${versionXcode}.app
59+
60+ - name : Log xcodebuild Version
61+ run : |
62+ xcodebuild -version
63+
64+
4965 - name : Build Frames
5066 run : |
51- xcodebuild -scheme Frames -destination "platform=iOS Simulator,name=iPhone 14 Pro,OS=latest"
67+ xcodebuild -scheme Frames -destination "${destination}" "${noIndex}" "${noSigning}" | xcpretty
68+
69+ - name : Build CheckoutTests
70+ run : |
71+ xcodebuild build -scheme CheckoutTests -destination "${destination}" "${noIndex}" "${noSigning}" | xcpretty
5272
5373 - name : Build FramesTests
5474 run : |
55- xcodebuild -scheme FramesTests -destination "platform=iOS Simulator,name=iPhone 14 Pro,OS=latest" test
75+ xcodebuild build -scheme FramesTests -destination "${destination}" "${noIndex}" "${noSigning}" | xcpretty
5676
5777 - name : Build iOS Example Frame SPM
5878 run : |
5979 cd iOS\ Example\ Frame\ SPM
60- xcodebuild build -scheme iOS\ Example\ Frame -destination "platform=iOS Simulator,name=iPhone 14 Pro,OS=latest"
80+ xcodebuild build -scheme iOS\ Example\ Frame -destination "${destination}" "${noIndex}" "${noSigning}" | xcpretty
6181
6282 - name : Build UITest
6383 run : |
6484 cd iOS\ Example\ Frame\ SPM
65- xcodebuild -scheme UITest -destination "platform=iOS Simulator,name=iPhone 14 Pro,OS=latest"
85+ xcodebuild -scheme UITest -destination "${destination}" "${noIndex}" "${noSigning}" | xcpretty
6686
6787 # Perform analysis on the code
6888 - name : Analyze code with CodeQL
0 commit comments