62
62
apis : ${{ steps.matrix_config.outputs.apis }}
63
63
mobile_test_on : ${{ steps.matrix_config.outputs.mobile_test_on }}
64
64
android_device : ${{ steps.matrix_config.outputs.android_device }}
65
+ xcode_version : ${{ steps.matrix_config.outputs.xcode_version }}
65
66
ios_device : ${{ steps.matrix_config.outputs.ios_device }}
66
67
tvos_device : ${{ steps.matrix_config.outputs.tvos_device }}
67
68
steps :
@@ -182,6 +183,7 @@ jobs:
182
183
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}}")
183
184
echo "::set-output name=mobile_test_on::${mobile_test_on}"
184
185
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)"
185
187
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} )"
186
188
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} )"
187
189
- name : Update PR label and comment
@@ -208,6 +210,9 @@ jobs:
208
210
os : ${{ fromJson(needs.check_and_prepare.outputs.matrix_os) }}
209
211
ssl_variant : ${{ fromJson(needs.check_and_prepare.outputs.matrix_ssl) }}
210
212
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
211
216
- uses : actions/checkout@v2
212
217
with :
213
218
ref : ${{needs.check_and_prepare.outputs.github_ref}}
@@ -387,6 +392,9 @@ jobs:
387
392
matrix :
388
393
os : ${{ fromJson(needs.check_and_prepare.outputs.matrix_os) }}
389
394
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
390
398
- uses : actions/checkout@v2
391
399
with :
392
400
ref : ${{needs.check_and_prepare.outputs.github_ref}}
@@ -508,6 +516,9 @@ jobs:
508
516
strategy :
509
517
fail-fast : false
510
518
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
511
522
- uses : actions/checkout@v2
512
523
with :
513
524
ref : ${{needs.check_and_prepare.outputs.github_ref}}
@@ -619,6 +630,9 @@ jobs:
619
630
strategy :
620
631
fail-fast : false
621
632
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
622
636
- uses : actions/checkout@v2
623
637
with :
624
638
ref : ${{needs.check_and_prepare.outputs.github_ref}}
@@ -726,6 +740,9 @@ jobs:
726
740
os : ${{ fromJson(needs.check_and_prepare.outputs.matrix_os) }}
727
741
ssl_variant : ${{ fromJson(needs.check_and_prepare.outputs.matrix_ssl) }}
728
742
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
729
746
- uses : actions/checkout@v2
730
747
with :
731
748
ref : ${{needs.check_and_prepare.outputs.github_ref}}
@@ -802,6 +819,9 @@ jobs:
802
819
build_os : ${{ fromJson(needs.check_and_prepare.outputs.matrix_os) }}
803
820
android_device : ${{ fromJson(needs.check_and_prepare.outputs.android_device) }}
804
821
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
805
825
- uses : actions/checkout@v2
806
826
with :
807
827
ref : ${{needs.check_and_prepare.outputs.github_ref}}
@@ -897,6 +917,9 @@ jobs:
897
917
matrix :
898
918
ios_device : ${{ fromJson(needs.check_and_prepare.outputs.ios_device) }}
899
919
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
900
923
- uses : actions/checkout@v2
901
924
with :
902
925
ref : ${{needs.check_and_prepare.outputs.github_ref}}
@@ -993,6 +1016,9 @@ jobs:
993
1016
matrix :
994
1017
tvos_device : ${{ fromJson(needs.check_and_prepare.outputs.tvos_device) }}
995
1018
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
996
1022
- uses : actions/checkout@v2
997
1023
with :
998
1024
ref : ${{needs.check_and_prepare.outputs.github_ref}}
0 commit comments