Skip to content

Commit 2d6056a

Browse files
authored
[Infra] Install visionOS on runner only if it doesn't already exist (#15077)
1 parent 5e99fea commit 2d6056a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/common.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ jobs:
106106
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
107107
- name: Install visionOS, if needed.
108108
if: matrix.platform == 'visionOS'
109-
run: xcodebuild -downloadPlatform visionOS
109+
run: ls $(xcode-select -p)/Platforms/XROS.platform || \
110+
{ xcodebuild -downloadPlatform visionOS }
110111
- name: Run setup command, if needed.
111112
if: inputs.setup_command != ''
112113
run: ${{ inputs.setup_command }}

0 commit comments

Comments
 (0)