Skip to content

Commit 2423b23

Browse files
committed
update broker pipeline to use split up system
1 parent de05cbc commit 2423b23

File tree

1 file changed

+35
-6
lines changed

1 file changed

+35
-6
lines changed

azure_pipelines/broker_submodule_check.yml

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ resources:
3232

3333
jobs:
3434
- job: 'Validate_Pull_Request'
35+
strategy:
36+
maxParallel: 3
37+
matrix:
38+
IOS_LIB:
39+
target: "ios_library"
40+
MAC_LIB:
41+
target: "mac_library"
42+
VISION_LIB:
43+
target: "vision_library"
3544
displayName: Validate Pull Request
3645
pool:
3746
vmImage: 'macOS-14'
@@ -145,11 +154,15 @@ jobs:
145154
inputs:
146155
targetType: 'inline'
147156
script: |
148-
echo "Downloading simulator for visionOS"
149-
sudo xcode-select -s /Applications/Xcode_15.4.app/Contents/Developer
150-
defaults write com.apple.dt.Xcode AllowUnsupportedVisionOSHost -bool YES
151-
defaults write com.apple.CoreSimulator AllowUnsupportedVisionOSHost -bool YES
152-
xcodebuild -downloadPlatform visionOS
157+
if [ $(target) == 'vision_library' ]; then
158+
echo "Downloading simulator for visionOS"
159+
sudo xcode-select -s /Applications/Xcode_15.4.app/Contents/Developer
160+
defaults write com.apple.dt.Xcode AllowUnsupportedVisionOSHost -bool YES
161+
defaults write com.apple.CoreSimulator AllowUnsupportedVisionOSHost -bool YES
162+
xcodebuild -downloadPlatform visionOS
163+
else
164+
echo "Not visionOS job, no download needed"
165+
fi
153166
failOnStderr: false
154167

155168

@@ -160,5 +173,21 @@ jobs:
160173
script: |
161174
cd azure-activedirectory-tokenbroker-for-objc
162175
echo "executing build:./build.py"
163-
python3 ./build.py
176+
{ output=$(./build.py --show-build-settings --target $(target) 2>&1 1>&3-) ;} 3>&1
177+
final_status=$(<./build/status.txt)
178+
echo "FINAL STATUS = ${final_status}"
179+
echo "POSSIBLE ERRORS: ${output}"
180+
181+
if [ $final_status != "0" ]; then
182+
echo "Build & Testing Failed! \n ${output}" >&2
183+
fi
184+
failOnStderr: true
185+
186+
- task: Bash@3
187+
condition: always()
188+
displayName: Cleanup
189+
inputs:
190+
targetType: 'inline'
191+
script: |
192+
rm -rf ./build/status.txt
164193

0 commit comments

Comments
 (0)