6262 apis : ${{ steps.matrix_config.outputs.apis }}
6363 mobile_test_on : ${{ steps.matrix_config.outputs.mobile_test_on }}
6464 android_device : ${{ steps.matrix_config.outputs.android_device }}
65+ xcode_version : ${{ steps.matrix_config.outputs.xcode_version }}
6566 ios_device : ${{ steps.matrix_config.outputs.ios_device }}
6667 tvos_device : ${{ steps.matrix_config.outputs.tvos_device }}
6768 steps :
@@ -182,6 +183,7 @@ jobs:
182183 mobile_test_on=$( python scripts/gha/print_matrix_configuration.py -c -w integration_tests -k mobile_test_on -o "${{github.event.inputs.mobile_test_on}}")
183184 echo "::set-output name=mobile_test_on::${mobile_test_on}"
184185 echo "::set-output name=android_device::$( python scripts/gha/print_matrix_configuration.py -w integration_tests ${TEST_MATRIX_PARAM} -k android_device -t ${mobile_test_on} )"
186+ echo "::set-output name=xcode_version::$( python scripts/gha/print_matrix_configuration.py -w integration_tests ${TEST_MATRIX_PARAM} -k xcode_version)"
185187 echo "::set-output name=ios_device::$( python scripts/gha/print_matrix_configuration.py -w integration_tests ${TEST_MATRIX_PARAM} -k ios_device -t ${mobile_test_on} )"
186188 echo "::set-output name=tvos_device::$( python scripts/gha/print_matrix_configuration.py -w integration_tests ${TEST_MATRIX_PARAM} -k tvos_device -t ${mobile_test_on} )"
187189 - name : Update PR label and comment
@@ -208,6 +210,9 @@ jobs:
208210 os : ${{ fromJson(needs.check_and_prepare.outputs.matrix_os) }}
209211 ssl_variant : ${{ fromJson(needs.check_and_prepare.outputs.matrix_ssl) }}
210212 steps :
213+ - name : setup Xcode version (macos)
214+ if : runner.os == 'macOS'
215+ run : sudo xcode-select -s /Applications/Xcode_${{ fromJson(needs.check_and_prepare.outputs.xcode_version)[0] }}.app/Contents/Developer
211216 - uses : actions/checkout@v2
212217 with :
213218 ref : ${{needs.check_and_prepare.outputs.github_ref}}
@@ -387,6 +392,9 @@ jobs:
387392 matrix :
388393 os : ${{ fromJson(needs.check_and_prepare.outputs.matrix_os) }}
389394 steps :
395+ - name : setup Xcode version (macos)
396+ if : runner.os == 'macOS'
397+ run : sudo xcode-select -s /Applications/Xcode_${{ fromJson(needs.check_and_prepare.outputs.xcode_version)[0] }}.app/Contents/Developer
390398 - uses : actions/checkout@v2
391399 with :
392400 ref : ${{needs.check_and_prepare.outputs.github_ref}}
@@ -508,6 +516,9 @@ jobs:
508516 strategy :
509517 fail-fast : false
510518 steps :
519+ - name : setup Xcode version (macos)
520+ if : runner.os == 'macOS'
521+ run : sudo xcode-select -s /Applications/Xcode_${{ fromJson(needs.check_and_prepare.outputs.xcode_version)[0] }}.app/Contents/Developer
511522 - uses : actions/checkout@v2
512523 with :
513524 ref : ${{needs.check_and_prepare.outputs.github_ref}}
@@ -619,6 +630,9 @@ jobs:
619630 strategy :
620631 fail-fast : false
621632 steps :
633+ - name : setup Xcode version (macos)
634+ if : runner.os == 'macOS'
635+ run : sudo xcode-select -s /Applications/Xcode_${{ fromJson(needs.check_and_prepare.outputs.xcode_version)[0] }}.app/Contents/Developer
622636 - uses : actions/checkout@v2
623637 with :
624638 ref : ${{needs.check_and_prepare.outputs.github_ref}}
@@ -726,6 +740,9 @@ jobs:
726740 os : ${{ fromJson(needs.check_and_prepare.outputs.matrix_os) }}
727741 ssl_variant : ${{ fromJson(needs.check_and_prepare.outputs.matrix_ssl) }}
728742 steps :
743+ - name : setup Xcode version (macos)
744+ if : runner.os == 'macOS'
745+ run : sudo xcode-select -s /Applications/Xcode_${{ fromJson(needs.check_and_prepare.outputs.xcode_version)[0] }}.app/Contents/Developer
729746 - uses : actions/checkout@v2
730747 with :
731748 ref : ${{needs.check_and_prepare.outputs.github_ref}}
@@ -802,6 +819,9 @@ jobs:
802819 build_os : ${{ fromJson(needs.check_and_prepare.outputs.matrix_os) }}
803820 android_device : ${{ fromJson(needs.check_and_prepare.outputs.android_device) }}
804821 steps :
822+ - name : setup Xcode version (macos)
823+ if : runner.os == 'macOS'
824+ run : sudo xcode-select -s /Applications/Xcode_${{ fromJson(needs.check_and_prepare.outputs.xcode_version)[0] }}.app/Contents/Developer
805825 - uses : actions/checkout@v2
806826 with :
807827 ref : ${{needs.check_and_prepare.outputs.github_ref}}
@@ -897,6 +917,9 @@ jobs:
897917 matrix :
898918 ios_device : ${{ fromJson(needs.check_and_prepare.outputs.ios_device) }}
899919 steps :
920+ - name : setup Xcode version (macos)
921+ if : runner.os == 'macOS'
922+ run : sudo xcode-select -s /Applications/Xcode_${{ fromJson(needs.check_and_prepare.outputs.xcode_version)[0] }}.app/Contents/Developer
900923 - uses : actions/checkout@v2
901924 with :
902925 ref : ${{needs.check_and_prepare.outputs.github_ref}}
@@ -993,6 +1016,9 @@ jobs:
9931016 matrix :
9941017 tvos_device : ${{ fromJson(needs.check_and_prepare.outputs.tvos_device) }}
9951018 steps :
1019+ - name : setup Xcode version (macos)
1020+ if : runner.os == 'macOS'
1021+ run : sudo xcode-select -s /Applications/Xcode_${{ fromJson(needs.check_and_prepare.outputs.xcode_version)[0] }}.app/Contents/Developer
9961022 - uses : actions/checkout@v2
9971023 with :
9981024 ref : ${{needs.check_and_prepare.outputs.github_ref}}
0 commit comments