Skip to content

Commit d8ff706

Browse files
Add Xcode 26 CI jobs for iOS and macOS
Add iOS and macOS build jobs targeting Xcode 26 to the Azure DevOps pipeline. The ios.yml and macos.yml job templates now accept an optional xcodeVersion parameter so a specific Xcode version can be selected without changing the pipeline-level XCODE_VERSION variable. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 9d45e33 commit d8ff706

File tree

3 files changed

+32
-6
lines changed

3 files changed

+32
-6
lines changed

.github/jobs/ios.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ parameters:
22
name: ""
33
vmImage: ""
44
deploymentTarget: "15"
5+
xcodeVersion: ""
56

67
jobs:
78
- job: ${{parameters.name}}
@@ -14,9 +15,14 @@ jobs:
1415
parameters:
1516
vmImage: ${{parameters.vmImage}}
1617

17-
- script: |
18-
sudo xcode-select --switch /Applications/Xcode_$(XCODE_VERSION).app/Contents/Developer
19-
displayName: "Select Xcode $(XCODE_VERSION)"
18+
- ${{ if ne(parameters.xcodeVersion, '') }}:
19+
- script: |
20+
sudo xcode-select --switch /Applications/Xcode_${{parameters.xcodeVersion}}.app/Contents/Developer
21+
displayName: "Select Xcode ${{parameters.xcodeVersion}}"
22+
- ${{ else }}:
23+
- script: |
24+
sudo xcode-select --switch /Applications/Xcode_$(XCODE_VERSION).app/Contents/Developer
25+
displayName: "Select Xcode $(XCODE_VERSION)"
2026
2127
- script: |
2228
cmake -G Xcode -B build/iOS -D IOS=ON -D DEPLOYMENT_TARGET=${{parameters.deploymentTarget}} -D CMAKE_UNITY_BUILD=$(UNITY_BUILD) -D BABYLON_DEBUG_TRACE=ON -D CMAKE_IOS_INSTALL_COMBINED=NO

.github/jobs/macos.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ parameters:
33
vmImage: ""
44
enableSanitizers: false
55
generator: Xcode
6+
xcodeVersion: ""
67

78
jobs:
89
- job: ${{parameters.name}}
@@ -18,9 +19,14 @@ jobs:
1819
parameters:
1920
vmImage: ${{parameters.vmImage}}
2021

21-
- script: |
22-
sudo xcode-select --switch /Applications/Xcode_$(XCODE_VERSION).app/Contents/Developer
23-
displayName: "Select XCode $(XCODE_VERSION)"
22+
- ${{ if ne(parameters.xcodeVersion, '') }}:
23+
- script: |
24+
sudo xcode-select --switch /Applications/Xcode_${{parameters.xcodeVersion}}.app/Contents/Developer
25+
displayName: "Select Xcode ${{parameters.xcodeVersion}}"
26+
- ${{ else }}:
27+
- script: |
28+
sudo xcode-select --switch /Applications/Xcode_$(XCODE_VERSION).app/Contents/Developer
29+
displayName: "Select XCode $(XCODE_VERSION)"
2430
2531
- script: |
2632
cmake -G "${{parameters.generator}}" -B build/macOS -D CMAKE_UNITY_BUILD=$(UNITY_BUILD) -D BABYLON_DEBUG_TRACE=ON -D ENABLE_SANITIZERS=$(SANITIZER_FLAG) -D BABYLON_NATIVE_TESTS_USE_NOOP_METAL_DEVICE=ON

azure-pipelines.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,20 @@ jobs:
4545
vmImage: macOS-latest
4646
deploymentTarget: 17.5
4747

48+
# Xcode 26
49+
- template: .github/jobs/macos.yml
50+
parameters:
51+
name: MacOS_Xcode26
52+
vmImage: macOS-latest
53+
xcodeVersion: "26.3"
54+
55+
- template: .github/jobs/ios.yml
56+
parameters:
57+
name: iOS_Xcode26
58+
vmImage: macOS-latest
59+
xcodeVersion: "26.3"
60+
deploymentTarget: 26.0
61+
4862
# Win32
4963
- template: .github/jobs/win32.yml
5064
parameters:

0 commit comments

Comments
 (0)