File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,14 @@ jobs:
118
118
- if : matrix.build-mode == 'manual' && matrix.language == 'swift'
119
119
shell : bash
120
120
run : |
121
- swift package resolve
122
- swift build
121
+ # Build for macOS
122
+ xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "XLKit-CI" -destination "generic/platform=macOS,name=Any Mac" | xcbeautify && exit ${PIPESTATUS[0]}
123
+ # Build for iOS (if available simulators found)
124
+ if xcodebuild -showdestinations -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "XLKit-CI" | grep -q "iOS Simulator"; then
125
+ xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "XLKit-CI" -destination "generic/platform=iOS Simulator,name=Any iOS Device" | xcbeautify && exit ${PIPESTATUS[0]}
126
+ else
127
+ echo "No iOS simulators found, skipping iOS build"
128
+ fi
123
129
124
130
- name : Perform CodeQL Analysis
125
131
uses : github/codeql-action/analyze@v3
You can’t perform that action at this time.
0 commit comments