Skip to content

Commit 52bae69

Browse files
authored
[Infra] Install visionOS sims to workflows that couldn't find it (#14543)
1 parent 8ee1e96 commit 52bae69

File tree

8 files changed

+24
-0
lines changed

8 files changed

+24
-0
lines changed

.github/workflows/abtesting.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ jobs:
120120
key: ${{needs.spm-package-resolved.outputs.cache_key}}
121121
- name: Xcode
122122
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
123+
- name: Install visionOS, if needed.
124+
if: matrix.target == 'visionOS'
125+
run: xcodebuild -downloadPlatform visionOS
123126
- name: Initialize xcodebuild
124127
run: scripts/setup_spm_tests.sh
125128
- uses: nick-fields/retry@v3

.github/workflows/auth.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ jobs:
141141
key: ${{needs.spm-package-resolved.outputs.cache_key}}
142142
- name: Xcode
143143
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
144+
- name: Install visionOS, if needed.
145+
if: matrix.target == 'visionOS spm'
146+
run: xcodebuild -downloadPlatform visionOS
144147
- name: Initialize xcodebuild
145148
run: scripts/setup_spm_tests.sh
146149
- uses: nick-fields/retry@v3

.github/workflows/core.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ jobs:
101101
key: ${{needs.spm-package-resolved.outputs.cache_key}}
102102
- name: Xcode
103103
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
104+
- name: Install visionOS, if needed.
105+
if: matrix.target == 'visionOS'
106+
run: xcodebuild -downloadPlatform visionOS
104107
- name: Initialize xcodebuild
105108
run: scripts/setup_spm_tests.sh
106109
- name: Unit Tests

.github/workflows/crashlytics.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ jobs:
116116
key: ${{needs.spm-package-resolved.outputs.cache_key}}
117117
- name: Xcode
118118
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
119+
- name: Install visionOS, if needed.
120+
if: matrix.target == 'visionOS'
121+
run: xcodebuild -downloadPlatform visionOS
119122
- name: Initialize xcodebuild
120123
run: scripts/setup_spm_tests.sh
121124
- uses: nick-fields/retry@v3

.github/workflows/mlmodeldownloader.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ jobs:
131131
key: ${{needs.spm-package-resolved.outputs.cache_key}}
132132
- name: Xcode
133133
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
134+
- name: Install visionOS, if needed.
135+
if: matrix.target == 'visionOS'
136+
run: xcodebuild -downloadPlatform visionOS
134137
- name: Initialize xcodebuild
135138
run: scripts/setup_spm_tests.sh
136139
- name: Unit Tests

.github/workflows/remoteconfig.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ jobs:
155155
key: ${{needs.spm-package-resolved.outputs.cache_key}}
156156
- name: Xcode
157157
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
158+
- name: Install visionOS, if needed.
159+
if: matrix.target == 'visionOS'
160+
run: xcodebuild -downloadPlatform visionOS
158161
- name: Initialize xcodebuild
159162
run: scripts/setup_spm_tests.sh
160163
- name: Unit Tests

.github/workflows/sessions.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ jobs:
111111
key: ${{needs.spm-package-resolved.outputs.cache_key}}
112112
- name: Xcode
113113
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
114+
- name: Install visionOS, if needed.
115+
if: matrix.target == 'visionOS'
116+
run: xcodebuild -downloadPlatform visionOS
114117
- name: Initialize xcodebuild
115118
run: scripts/setup_spm_tests.sh
116119
- uses: nick-fields/retry@v3

.github/workflows/vertexai.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ jobs:
8181
run: scripts/update_vertexai_responses.sh
8282
- name: Xcode
8383
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
84+
- name: Install visionOS, if needed.
85+
if: matrix.target == 'visionOS'
86+
run: xcodebuild -downloadPlatform visionOS
8487
- name: Initialize xcodebuild
8588
run: scripts/setup_spm_tests.sh
8689
- uses: nick-fields/retry@v3

0 commit comments

Comments
 (0)