20
20
required : true
21
21
operating_systems :
22
22
description : ' CSV of VMs to run on'
23
- default : ' ubuntu-latest,windows-latest,macos-latest '
23
+ default : ' ubuntu-latest,windows-latest,macos-12 '
24
24
required : true
25
25
desktop_ssl_variants :
26
26
description : ' CSV of desktop SSL variants to use'
@@ -534,7 +534,7 @@ jobs:
534
534
build_ios :
535
535
name : build-ios-macos-latest
536
536
needs : [check_and_prepare]
537
- runs-on : macos-latest
537
+ runs-on : macos-12
538
538
if : contains(needs.check_and_prepare.outputs.matrix_platform, 'iOS') && needs.check_and_prepare.outputs.apis != '' && !cancelled() && !failure()
539
539
strategy :
540
540
fail-fast : false
@@ -599,30 +599,30 @@ jobs:
599
599
--t ${{ needs.check_and_prepare.outputs.apis }} \
600
600
--output_directory "${{ github.workspace }}" \
601
601
--ios_sdk ${{ needs.check_and_prepare.outputs.mobile_test_on }} \
602
- --artifact_name "ios-macos-latest " \
602
+ --artifact_name "ios-macos-12 " \
603
603
--noadd_timestamp \
604
604
--short_output_paths \
605
605
${additional_flags[*]}
606
606
- name : Prepare results summary artifact
607
607
if : ${{ !cancelled() }}
608
608
shell : bash
609
609
run : |
610
- if [ ! -f build-results-ios-macos-latest .log.json ]; then
611
- echo "__SUMMARY_MISSING__" > build-results-ios-macos-latest .log.json
610
+ if [ ! -f build-results-ios-macos-12 .log.json ]; then
611
+ echo "__SUMMARY_MISSING__" > build-results-ios-macos-12 .log.json
612
612
fi
613
613
- name : Upload iOS integration tests artifact
614
614
uses : actions/upload-artifact@v3
615
615
if : ${{ !cancelled() }}
616
616
with :
617
- name : testapps-ios-macos-latest
618
- path : testapps-ios-macos-latest
617
+ name : testapps-ios-macos-12
618
+ path : testapps-ios-macos-12
619
619
retention-days : ${{ env.artifactRetentionDays }}
620
620
- name : Upload iOS build results artifact
621
621
uses : actions/upload-artifact@v3
622
622
if : ${{ !cancelled() }}
623
623
with :
624
624
name : log-artifact
625
- path : build-results-ios-macos-latest *
625
+ path : build-results-ios-macos-12 *
626
626
retention-days : ${{ env.artifactRetentionDays }}
627
627
- name : Download log artifacts
628
628
if : ${{ needs.check_and_prepare.outputs.pr_number && failure() && !cancelled() }}
@@ -643,15 +643,15 @@ jobs:
643
643
if : ${{ !cancelled() }}
644
644
shell : bash
645
645
run : |
646
- cat build-results-ios-macos-latest .log
646
+ cat build-results-ios-macos-12 .log
647
647
if [[ "${{ job.status }}" != "success" ]]; then
648
648
exit 1
649
649
fi
650
650
651
651
build_tvos :
652
652
name : build-tvos-macos-latest
653
653
needs : [check_and_prepare]
654
- runs-on : macos-latest
654
+ runs-on : macos-12
655
655
if : contains(needs.check_and_prepare.outputs.matrix_platform, 'tvOS') && needs.check_and_prepare.outputs.apis != '' && !cancelled() && !failure()
656
656
strategy :
657
657
fail-fast : false
@@ -715,30 +715,30 @@ jobs:
715
715
python scripts/gha/build_testapps.py --p tvOS \
716
716
--t ${{ needs.check_and_prepare.outputs.apis }} \
717
717
--output_directory "${{ github.workspace }}" \
718
- --artifact_name "tvos-macos-latest " \
718
+ --artifact_name "tvos-macos-12 " \
719
719
--noadd_timestamp \
720
720
--short_output_paths \
721
721
${additional_flags[*]}
722
722
- name : Prepare results summary artifact
723
723
if : ${{ !cancelled() }}
724
724
shell : bash
725
725
run : |
726
- if [ ! -f build-results-tvos-macos-latest .log.json ]; then
727
- echo "__SUMMARY_MISSING__" > build-results-tvos-macos-latest .log.json
726
+ if [ ! -f build-results-tvos-macos-12 .log.json ]; then
727
+ echo "__SUMMARY_MISSING__" > build-results-tvos-macos-12 .log.json
728
728
fi
729
729
- name : Upload tvOS integration tests artifact
730
730
uses : actions/upload-artifact@v3
731
731
if : ${{ !cancelled() }}
732
732
with :
733
- name : testapps-tvos-macos-latest
734
- path : testapps-tvos-macos-latest
733
+ name : testapps-tvos-macos-12
734
+ path : testapps-tvos-macos-12
735
735
retention-days : ${{ env.artifactRetentionDays }}
736
736
- name : Upload tvOS build results artifact
737
737
uses : actions/upload-artifact@v3
738
738
if : ${{ !cancelled() }}
739
739
with :
740
740
name : log-artifact
741
- path : build-results-tvos-macos-latest *
741
+ path : build-results-tvos-macos-12 *
742
742
retention-days : ${{ env.artifactRetentionDays }}
743
743
- name : Download log artifacts
744
744
if : ${{ needs.check_and_prepare.outputs.pr_number && failure() && !cancelled() }}
@@ -759,7 +759,7 @@ jobs:
759
759
if : ${{ !cancelled() }}
760
760
shell : bash
761
761
run : |
762
- cat build-results-tvos-macos-latest .log
762
+ cat build-results-tvos-macos-12 .log
763
763
if [[ "${{ job.status }}" != "success" ]]; then
764
764
exit 1
765
765
fi
@@ -858,7 +858,7 @@ jobs:
858
858
test_android :
859
859
name : test-android-${{ matrix.build_os }}-${{ matrix.android_device }}
860
860
needs : [check_and_prepare, build_android]
861
- runs-on : macos-latest
861
+ runs-on : macos-12
862
862
if : contains(needs.check_and_prepare.outputs.matrix_platform, 'Android') && needs.check_and_prepare.outputs.apis != '' && !cancelled()
863
863
strategy :
864
864
fail-fast : false
@@ -963,7 +963,7 @@ jobs:
963
963
test_ios :
964
964
name : test-ios-macos-latest-${{ matrix.ios_device }}
965
965
needs : [check_and_prepare, build_ios]
966
- runs-on : macos-latest
966
+ runs-on : macos-12
967
967
if : contains(needs.check_and_prepare.outputs.matrix_platform, 'iOS') && needs.check_and_prepare.outputs.apis != '' && !cancelled()
968
968
strategy :
969
969
fail-fast : false
@@ -980,7 +980,7 @@ jobs:
980
980
uses : actions/download-artifact@v3
981
981
with :
982
982
path : testapps
983
- name : testapps-ios-macos-latest
983
+ name : testapps-ios-macos-12
984
984
- name : Setup python
985
985
uses : actions/setup-python@v2
986
986
with :
@@ -1009,7 +1009,7 @@ jobs:
1009
1009
run : |
1010
1010
python scripts/gha/test_simulator.py --testapp_dir testapps \
1011
1011
--ios_device "${{ matrix.ios_device }}" \
1012
- --logfile_name "ios-macos-latest -${{ matrix.ios_device }}" \
1012
+ --logfile_name "ios-macos-12 -${{ matrix.ios_device }}" \
1013
1013
--ci
1014
1014
- name : Install Cloud SDK
1015
1015
if : steps.get-device-type.outputs.device_type == 'real'
@@ -1022,23 +1022,23 @@ jobs:
1022
1022
python scripts/gha/restore_secrets.py --passphrase "${{ secrets.TEST_SECRET }}"
1023
1023
python scripts/gha/test_lab.py --testapp_dir testapps \
1024
1024
--ios_device "${{ matrix.ios_device }}" \
1025
- --logfile_name "ios-macos-latest -${{ matrix.ios_device }}" \
1025
+ --logfile_name "ios-macos-12 -${{ matrix.ios_device }}" \
1026
1026
--code_platform cpp \
1027
1027
--key_file scripts/gha-encrypted/gcs_key_file.json
1028
1028
- name : Prepare results summary artifact
1029
1029
if : ${{ !cancelled() }}
1030
1030
shell : bash
1031
1031
run : |
1032
1032
# If testapps do not exist, then it's a build error not test error.
1033
- if [ -d "testapps/testapps-ios-macos-latest " && ! -f "testapps/test-results-ios-macos-latest -${{ matrix.ios_device }}.log.json" ]; then
1034
- mkdir -p testapps && echo "__SUMMARY_MISSING__" > "testapps/test-results-ios-macos-latest -${{ matrix.ios_device }}.log.json"
1033
+ if [ -d "testapps/testapps-ios-macos-12 " && ! -f "testapps/test-results-ios-macos-12 -${{ matrix.ios_device }}.log.json" ]; then
1034
+ mkdir -p testapps && echo "__SUMMARY_MISSING__" > "testapps/test-results-ios-macos-12 -${{ matrix.ios_device }}.log.json"
1035
1035
fi
1036
1036
- name : Upload iOS test results artifact
1037
1037
if : ${{ !cancelled() }}
1038
1038
uses : actions/upload-artifact@v3
1039
1039
with :
1040
1040
name : log-artifact
1041
- path : testapps/test-results-ios-macos-latest -${{ matrix.ios_device }}*
1041
+ path : testapps/test-results-ios-macos-12 -${{ matrix.ios_device }}*
1042
1042
retention-days : ${{ env.artifactRetentionDays }}
1043
1043
- name : Download log artifacts
1044
1044
if : ${{ needs.check_and_prepare.outputs.pr_number && failure() && !cancelled() }}
@@ -1059,15 +1059,15 @@ jobs:
1059
1059
if : ${{ !cancelled() }}
1060
1060
shell : bash
1061
1061
run : |
1062
- cat "testapps/test-results-ios-macos-latest -${{ matrix.ios_device }}.log"
1062
+ cat "testapps/test-results-ios-macos-12 -${{ matrix.ios_device }}.log"
1063
1063
if [[ "${{ job.status }}" != "success" ]]; then
1064
1064
exit 1
1065
1065
fi
1066
1066
1067
1067
test_tvos :
1068
1068
name : test-tvos-macos-latest-${{ matrix.tvos_device }}
1069
1069
needs : [check_and_prepare, build_tvos]
1070
- runs-on : macos-latest
1070
+ runs-on : macos-12
1071
1071
if : contains(needs.check_and_prepare.outputs.matrix_platform, 'tvOS') && needs.check_and_prepare.outputs.apis != '' && !cancelled()
1072
1072
strategy :
1073
1073
fail-fast : false
@@ -1084,7 +1084,7 @@ jobs:
1084
1084
uses : actions/download-artifact@v3
1085
1085
with :
1086
1086
path : testapps
1087
- name : testapps-tvos-macos-latest
1087
+ name : testapps-tvos-macos-12
1088
1088
- name : Setup python
1089
1089
uses : actions/setup-python@v2
1090
1090
with :
@@ -1105,22 +1105,22 @@ jobs:
1105
1105
run : |
1106
1106
python scripts/gha/test_simulator.py --testapp_dir testapps \
1107
1107
--tvos_device "${{ matrix.tvos_device }}" \
1108
- --logfile_name "tvos-macos-latest -${{ matrix.tvos_device }}" \
1108
+ --logfile_name "tvos-macos-12 -${{ matrix.tvos_device }}" \
1109
1109
--ci
1110
1110
- name : Prepare results summary artifact
1111
1111
if : ${{ !cancelled() }}
1112
1112
shell : bash
1113
1113
run : |
1114
1114
# If testapps do not exist, then it's a build error not test error.
1115
- if [ -d "testapps/testapps-tvos-macos-latest " && ! -f "testapps/test-results-tvos-macos-latest -${{ matrix.tvos_device }}.log.json" ]; then
1116
- mkdir -p testapps && echo "__SUMMARY_MISSING__" > "testapps/test-results-tvos-macos-latest -${{ matrix.tvos_device }}.log.json"
1115
+ if [ -d "testapps/testapps-tvos-macos-12 " && ! -f "testapps/test-results-tvos-macos-12 -${{ matrix.tvos_device }}.log.json" ]; then
1116
+ mkdir -p testapps && echo "__SUMMARY_MISSING__" > "testapps/test-results-tvos-macos-12 -${{ matrix.tvos_device }}.log.json"
1117
1117
fi
1118
1118
- name : Upload tvOS test results artifact
1119
1119
if : ${{ !cancelled() }}
1120
1120
uses : actions/upload-artifact@v3
1121
1121
with :
1122
1122
name : log-artifact
1123
- path : testapps/test-results-tvos-macos-latest -${{ matrix.tvos_device }}*
1123
+ path : testapps/test-results-tvos-macos-12 -${{ matrix.tvos_device }}*
1124
1124
retention-days : ${{ env.artifactRetentionDays }}
1125
1125
- name : Download log artifacts
1126
1126
if : ${{ needs.check_and_prepare.outputs.pr_number && failure() && !cancelled() }}
@@ -1141,7 +1141,7 @@ jobs:
1141
1141
if : ${{ !cancelled() }}
1142
1142
shell : bash
1143
1143
run : |
1144
- cat "testapps/test-results-tvos-macos-latest -${{ matrix.tvos_device }}.log"
1144
+ cat "testapps/test-results-tvos-macos-12 -${{ matrix.tvos_device }}.log"
1145
1145
if [[ "${{ job.status }}" != "success" ]]; then
1146
1146
exit 1
1147
1147
fi
0 commit comments