Skip to content

Commit

Permalink
ci: bump ci to macos-15 (#1321)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazo0 authored Jan 10, 2025
1 parent c85cdd0 commit 515d675
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 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
2 changes: 1 addition & 1 deletion build/workflow/scripts/ios-uitest-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export UNO_ORIGINAL_TEST_RESULTS=$BUILD_SOURCESDIRECTORY/build/$UNO_TEST_RESULTS
export UNO_UITEST_RUNTIMETESTS_RESULTS_FILE_PATH=$UNO_ORIGINAL_TEST_RESULTS
export UNO_TESTS_RESPONSE_FILE=$BUILD_SOURCESDIRECTORY/build/nunit.response
export UNO_UITEST_SIMULATOR_VERSION="com.apple.CoreSimulator.SimRuntime.iOS-17-5"
export UNO_UITEST_SIMULATOR_NAME="iPad Pro (12.9-inch) (6th generation)"
export UNO_UITEST_SIMULATOR_NAME="iPad (10th generation)"

export UITEST_TEST_TIMEOUT=120m

Expand Down
4 changes: 1 addition & 3 deletions build/workflow/stage-build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,11 @@ jobs:
CI_Build: true

pool:
vmImage: 'macOS-14'
vmImage: 'macOS-15'

steps:
- template: templates/dotnet-workload-install-mac.yml
- template: templates/canary-updater.yml
- template: templates/gitversion.yml
- template: templates/set-app-versions.yml

- bash: |
chmod +x $(build.sourcesdirectory)/build/workflow/scripts/ios-uitest-build.sh
Expand Down
4 changes: 4 additions & 0 deletions build/workflow/stage-uitests-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
- 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
$(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 515d675

Please sign in to comment.