14
14
jobs :
15
15
prerequisites :
16
16
name : Prerequisites
17
- runs-on : " ubuntu-latest "
17
+ runs-on : " ubuntu-20.04 "
18
18
outputs :
19
19
should_run : ${{ steps.check_submit.outputs.should_run }}
20
20
bundle_id : ${{ steps.check_bundle_id.outputs.bundle_id }}
88
88
if : steps.check_submit.outputs.should_run != 'false' && steps.jtreg.outputs.cache-hit != 'true'
89
89
90
90
- name : Build jtreg
91
- run : sh make/build-all.sh ${JAVA_HOME }
91
+ run : sh make/build-all.sh ${JAVA_HOME_8_X64 }
92
92
working-directory : jtreg
93
93
if : steps.check_submit.outputs.should_run != 'false' && steps.jtreg.outputs.cache-hit != 'true'
94
94
@@ -106,7 +106,7 @@ jobs:
106
106
107
107
linux_x64_build :
108
108
name : Linux x64
109
- runs-on : " ubuntu-latest "
109
+ runs-on : " ubuntu-20.04 "
110
110
needs : prerequisites
111
111
if : needs.prerequisites.outputs.should_run != 'false' && needs.prerequisites.outputs.platform_linux_x64 != 'false'
112
112
@@ -189,7 +189,9 @@ jobs:
189
189
path : gtest
190
190
191
191
- name : Install dependencies
192
- run : sudo apt-get install libxrandr-dev libxtst-dev libcups2-dev libasound2-dev
192
+ run : |
193
+ sudo apt-get install gcc-10=10.2.0-5ubuntu1~20.04 g++-10=10.2.0-5ubuntu1~20.04 libxrandr-dev libxtst-dev libcups2-dev libasound2-dev
194
+ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10
193
195
194
196
- name : Configure
195
197
run : >
@@ -221,7 +223,7 @@ jobs:
221
223
222
224
linux_x64_test :
223
225
name : Linux x64
224
- runs-on : " ubuntu-latest "
226
+ runs-on : " ubuntu-20.04 "
225
227
needs :
226
228
- prerequisites
227
229
- linux_x64_build
@@ -400,7 +402,7 @@ jobs:
400
402
401
403
linux_aarch64_build :
402
404
name : Linux aarch64
403
- runs-on : " ubuntu-latest "
405
+ runs-on : " ubuntu-20.04 "
404
406
needs :
405
407
- prerequisites
406
408
- linux_x64_build
@@ -536,7 +538,7 @@ jobs:
536
538
537
539
linux_arm_build :
538
540
name : Linux arm
539
- runs-on : " ubuntu-latest "
541
+ runs-on : " ubuntu-20.04 "
540
542
needs :
541
543
- prerequisites
542
544
- linux_x64_build
@@ -672,7 +674,7 @@ jobs:
672
674
673
675
linux_s390x_build :
674
676
name : Linux s390x
675
- runs-on : " ubuntu-latest "
677
+ runs-on : " ubuntu-20.04 "
676
678
needs :
677
679
- prerequisites
678
680
- linux_x64_build
@@ -808,7 +810,7 @@ jobs:
808
810
809
811
linux_ppc64le_build :
810
812
name : Linux ppc64le
811
- runs-on : " ubuntu-latest "
813
+ runs-on : " ubuntu-20.04 "
812
814
needs :
813
815
- prerequisites
814
816
- linux_x64_build
@@ -944,7 +946,7 @@ jobs:
944
946
945
947
linux_x86_build :
946
948
name : Linux x86
947
- runs-on : " ubuntu-latest "
949
+ runs-on : " ubuntu-20.04 "
948
950
needs : prerequisites
949
951
if : needs.prerequisites.outputs.should_run != 'false' && needs.prerequisites.outputs.platform_linux_x86 != 'false'
950
952
@@ -1018,7 +1020,8 @@ jobs:
1018
1020
run : |
1019
1021
sudo dpkg --add-architecture i386
1020
1022
sudo apt-get update
1021
- sudo apt-get install gcc-multilib g++-multilib libfreetype6-dev:i386 libxrandr-dev:i386 libxtst-dev:i386 libtiff-dev:i386 libcupsimage2-dev:i386 libcups2-dev:i386 libasound2-dev:i386
1023
+ sudo apt-get install gcc-10-multilib g++-10-multilib libfreetype6-dev:i386 libxrandr-dev:i386 libxtst-dev:i386 libtiff-dev:i386 libcupsimage2-dev:i386 libcups2-dev:i386 libasound2-dev:i386
1024
+ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10
1022
1025
1023
1026
- name : Configure
1024
1027
run : >
@@ -1051,7 +1054,7 @@ jobs:
1051
1054
1052
1055
linux_x86_test :
1053
1056
name : Linux x86
1054
- runs-on : " ubuntu-latest "
1057
+ runs-on : " ubuntu-20.04 "
1055
1058
needs :
1056
1059
- prerequisites
1057
1060
- linux_x86_build
@@ -1842,7 +1845,7 @@ jobs:
1842
1845
1843
1846
artifacts :
1844
1847
name : Post-process artifacts
1845
- runs-on : " ubuntu-latest "
1848
+ runs-on : " ubuntu-20.04 "
1846
1849
if : always()
1847
1850
continue-on-error : true
1848
1851
needs :
0 commit comments