Skip to content

Commit

Permalink
ci: fix ios xcode version for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kazo0 committed Jan 9, 2025
1 parent c85cdd0 commit da91149
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/workflow/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ variables:

IsCanaryBranch: $[startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries/')]
IsReleaseBranch: $[or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/feature/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))]
XCODE_ROOT: '/Applications/Xcode_15.4.app'

stages:
- stage: Determine_Changes
Expand Down
3 changes: 3 additions & 0 deletions build/workflow/stage-uitests-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@

- template: templates/dotnet-workload-install-mac.yml
- template: templates/canary-updater.yml
- template: templates/xcode-select.yml
parameters:
xCodeRoot: $(XCODE_ROOT)

- bash: |
chmod +x $(build.sourcesdirectory)/build/workflow/scripts/ios-uitest-run.sh
Expand Down
10 changes: 10 additions & 0 deletions build/workflow/templates/xcode-select.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
parameters:
xCodeRoot: ''

steps:
- bash: |
echo 'Xcode Root to ${{parameters.xCodeRoot}}'
echo '##vso[task.setvariable variable=MD_APPLE_SDK_ROOT;]'${{parameters.xCodeRoot}}
sudo xcode-select --switch ${{parameters.xCodeRoot}}/Contents/Developer
displayName: Select Xcode

0 comments on commit da91149

Please sign in to comment.