3636 description : ' Platform(s) to execute on (comma separated, e.g. "linux-x64, macos, aarch64")'
3737 required : true
3838 default : ' linux-x64, linux-x86, linux-x64-variants, linux-cross-compile, macos-x64, macos-aarch64, windows-x64, windows-aarch64'
39+ configure-arguments :
40+ description : ' Additional configure arguments'
41+ required : false
42+ make-arguments :
43+ description : ' Additional make arguments'
44+ required : false
3945
4046concurrency :
4147 group : ${{ github.workflow }}-${{ github.ref }}
4955
5056 select :
5157 name : ' Select platforms'
52- runs-on : ubuntu-20 .04
58+ runs-on : ubuntu-22 .04
5359 outputs :
5460 linux-x64 : ${{ steps.include.outputs.linux-x64 }}
5561 linux-x86 : ${{ steps.include.outputs.linux-x86 }}
@@ -121,7 +127,10 @@ jobs:
121127 uses : ./.github/workflows/build-linux.yml
122128 with :
123129 platform : linux-x64
124- apt-gcc-version : ' 10=10.3.0-1ubuntu1~20.04'
130+ gcc-major-version : ' 10'
131+ apt-gcc-version : ' 10.5.0-1ubuntu1~22.04'
132+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
133+ make-arguments : ${{ github.event.inputs.make-arguments }}
125134 # The linux-x64 jdk bundle is used as buildjdk for the cross-compile job
126135 if : needs.select.outputs.linux-x64 == 'true' || needs.select.outputs.linux-cross-compile == 'true'
127136
@@ -131,12 +140,16 @@ jobs:
131140 uses : ./.github/workflows/build-linux.yml
132141 with :
133142 platform : linux-x86
134- apt-gcc-version : ' 10-multilib'
143+ gcc-major-version : ' 10'
144+ gcc-package-suffix : ' -multilib'
145+ apt-gcc-version : ' 10.5.0-1ubuntu1~22.04'
135146 apt-architecture : ' i386'
136147 # Some multilib libraries do not have proper inter-dependencies, so we have to
137148 # install their dependencies manually.
138149 apt-extra-packages : ' libfreetype6-dev:i386 libtiff-dev:i386 libcupsimage2-dev:i386'
139150 extra-conf-options : ' --with-target-bits=32'
151+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
152+ make-arguments : ${{ github.event.inputs.make-arguments }}
140153 if : needs.select.outputs.linux-x86 == 'true'
141154
142155 build-linux-x64-hs-nopch :
@@ -147,8 +160,11 @@ jobs:
147160 platform : linux-x64
148161 make-target : ' hotspot'
149162 debug-levels : ' [ "debug" ]'
150- apt-gcc-version : ' 10=10.3.0-1ubuntu1~20.04'
163+ gcc-major-version : ' 10'
164+ apt-gcc-version : ' 10.5.0-1ubuntu1~22.04'
151165 extra-conf-options : ' --disable-precompiled-headers'
166+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
167+ make-arguments : ${{ github.event.inputs.make-arguments }}
152168 if : needs.select.outputs.linux-x64-variants == 'true'
153169
154170 build-linux-x64-hs-zero :
@@ -159,8 +175,11 @@ jobs:
159175 platform : linux-x64
160176 make-target : ' hotspot'
161177 debug-levels : ' [ "debug" ]'
162- apt-gcc-version : ' 10=10.3.0-1ubuntu1~20.04'
178+ gcc-major-version : ' 10'
179+ apt-gcc-version : ' 10.5.0-1ubuntu1~22.04'
163180 extra-conf-options : ' --with-jvm-variants=zero --disable-precompiled-headers'
181+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
182+ make-arguments : ${{ github.event.inputs.make-arguments }}
164183 if : needs.select.outputs.linux-x64-variants == 'true'
165184
166185 build-linux-x64-hs-minimal :
@@ -171,8 +190,11 @@ jobs:
171190 platform : linux-x64
172191 make-target : ' hotspot'
173192 debug-levels : ' [ "debug" ]'
174- apt-gcc-version : ' 10=10.3.0-1ubuntu1~20.04'
193+ gcc-major-version : ' 10'
194+ apt-gcc-version : ' 10.5.0-1ubuntu1~22.04'
175195 extra-conf-options : ' --with-jvm-variants=minimal --disable-precompiled-headers'
196+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
197+ make-arguments : ${{ github.event.inputs.make-arguments }}
176198 if : needs.select.outputs.linux-x64-variants == 'true'
177199
178200 build-linux-x64-hs-optimized :
@@ -184,8 +206,11 @@ jobs:
184206 make-target : ' hotspot'
185207 # Technically this is not the "debug" level, but we can't inject a new matrix state for just this job
186208 debug-levels : ' [ "debug" ]'
187- apt-gcc-version : ' 10=10.3.0-1ubuntu1~20.04'
209+ gcc-major-version : ' 10'
210+ apt-gcc-version : ' 10.5.0-1ubuntu1~22.04'
188211 extra-conf-options : ' --with-debug-level=optimized --disable-precompiled-headers'
212+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
213+ make-arguments : ${{ github.event.inputs.make-arguments }}
189214 if : needs.select.outputs.linux-x64-variants == 'true'
190215
191216 build-linux-cross-compile :
@@ -194,6 +219,12 @@ jobs:
194219 - select
195220 - build-linux-x64
196221 uses : ./.github/workflows/build-cross-compile.yml
222+ with :
223+ gcc-major-version : ' 10'
224+ apt-gcc-version : ' 10.5.0-1ubuntu1~22.04'
225+ apt-gcc-cross-version : ' 10.5.0-1ubuntu1~22.04cross1'
226+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
227+ make-arguments : ${{ github.event.inputs.make-arguments }}
197228 if : needs.select.outputs.linux-cross-compile == 'true'
198229
199230 build-macos-x64 :
@@ -203,6 +234,8 @@ jobs:
203234 with :
204235 platform : macos-x64
205236 xcode-toolset-version : ' 12.5.1'
237+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
238+ make-arguments : ${{ github.event.inputs.make-arguments }}
206239 if : needs.select.outputs.macos-x64 == 'true'
207240
208241 build-macos-aarch64 :
@@ -213,6 +246,8 @@ jobs:
213246 platform : macos-aarch64
214247 xcode-toolset-version : ' 12.5.1'
215248 extra-conf-options : ' --openjdk-target=aarch64-apple-darwin'
249+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
250+ make-arguments : ${{ github.event.inputs.make-arguments }}
216251 if : needs.select.outputs.macos-aarch64 == 'true'
217252
218253 build-windows-x64 :
@@ -223,6 +258,8 @@ jobs:
223258 platform : windows-x64
224259 msvc-toolset-version : ' 14.29'
225260 msvc-toolset-architecture : ' x86.x64'
261+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
262+ make-arguments : ${{ github.event.inputs.make-arguments }}
226263 if : needs.select.outputs.windows-x64 == 'true'
227264
228265 build-windows-aarch64 :
@@ -235,6 +272,8 @@ jobs:
235272 msvc-toolset-architecture : ' arm64'
236273 make-target : ' hotspot'
237274 extra-conf-options : ' --openjdk-target=aarch64-unknown-cygwin'
275+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
276+ make-arguments : ${{ github.event.inputs.make-arguments }}
238277 if : needs.select.outputs.windows-aarch64 == 'true'
239278
240279 # ##
@@ -249,7 +288,7 @@ jobs:
249288 with :
250289 platform : linux-x64
251290 bootjdk-platform : linux-x64
252- runs-on : ubuntu-20 .04
291+ runs-on : ubuntu-22 .04
253292
254293 test-linux-x86 :
255294 name : linux-x86
@@ -259,7 +298,7 @@ jobs:
259298 with :
260299 platform : linux-x86
261300 bootjdk-platform : linux-x64
262- runs-on : ubuntu-20 .04
301+ runs-on : ubuntu-22 .04
263302
264303 test-macos-x64 :
265304 name : macos-x64
@@ -284,7 +323,7 @@ jobs:
284323 # Remove bundles so they are not misconstrued as binary distributions from the JDK project
285324 remove-bundles :
286325 name : ' Remove bundle artifacts'
287- runs-on : ubuntu-20 .04
326+ runs-on : ubuntu-22 .04
288327 if : always()
289328 needs :
290329 - build-linux-x64
0 commit comments