Skip to content

Commit

Permalink
provide xcode override method
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Oct 6, 2020
1 parent be743c2 commit 0b9feaa
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ indent_style = space

[*.plist]
indent_size = 2
indent_style = tab
indent_style = tab

[*.sh]
end_of_line = lf
2 changes: 1 addition & 1 deletion build/jobs/uno-uitest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:

- job: UnoUITest_iOS
displayName: Uno UITest iOS
condition: and(succeeded(), eq(variables['EnableUITest'], 'true'))
condition: and(succeeded(), eq(variables['EnableUITest'], 'true'), eq(variables['XcodeOverride'], ''))
pool:
vmImage: $(MacImage)
workspace:
Expand Down
6 changes: 6 additions & 0 deletions build/scripts/xcode-update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
xcodeRoot=/Applications/Xcode_$XcodeOverride.app
echo "Setting Xcode Override to: $xcodeRoot"

echo '##vso[task.setvariable variable=MD_APPLE_SDK_ROOT;]'$xcodeRoot
sudo xcode-select --switch $xcodeRoot/Contents/Developer
8 changes: 8 additions & 0 deletions build/steps/set-runtime.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
steps:
# For more information on what versions of Xcode are available see the following:
# https://github.com/microsoft/azure-pipelines-image-generation/blob/master/images/macos/macos-10.15-Readme.md
- script: build/scripts/xcode-update.sh
displayName: Force Xcode Update
env:
XcodeOverride: $(XcodeOverride)
condition: ne(variables['XcodeOverride'], '')

- script: |
dotnet tool install --global boots
boots --stable Mono
Expand Down

0 comments on commit 0b9feaa

Please sign in to comment.