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,9 @@ jobs:
121127 uses : ./.github/workflows/build-linux.yml
122128 with :
123129 platform : linux-x64
124- apt-gcc-version : ' 10'
130+ gcc-major-version : ' 10'
131+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
132+ make-arguments : ${{ github.event.inputs.make-arguments }}
125133 # The linux-x64 jdk bundle is used as buildjdk for the cross-compile job
126134 if : needs.select.outputs.linux-x64 == 'true' || needs.select.outputs.linux-cross-compile == 'true'
127135
@@ -131,12 +139,15 @@ jobs:
131139 uses : ./.github/workflows/build-linux.yml
132140 with :
133141 platform : linux-x86
134- apt-gcc-version : ' 10-multilib'
142+ gcc-major-version : ' 10'
143+ gcc-package-suffix : ' -multilib'
135144 apt-architecture : ' i386'
136145 # Some multilib libraries do not have proper inter-dependencies, so we have to
137146 # install their dependencies manually.
138147 apt-extra-packages : ' libfreetype6-dev:i386 libtiff-dev:i386 libcupsimage2-dev:i386'
139148 extra-conf-options : ' --with-target-bits=32'
149+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
150+ make-arguments : ${{ github.event.inputs.make-arguments }}
140151 if : needs.select.outputs.linux-x86 == 'true'
141152
142153 build-linux-x64-hs-nopch :
@@ -147,8 +158,10 @@ jobs:
147158 platform : linux-x64
148159 make-target : ' hotspot'
149160 debug-levels : ' [ "debug" ]'
150- apt- gcc-version : ' 10'
161+ gcc-major -version : ' 10'
151162 extra-conf-options : ' --disable-precompiled-headers'
163+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
164+ make-arguments : ${{ github.event.inputs.make-arguments }}
152165 if : needs.select.outputs.linux-x64-variants == 'true'
153166
154167 build-linux-x64-hs-zero :
@@ -159,8 +172,10 @@ jobs:
159172 platform : linux-x64
160173 make-target : ' hotspot'
161174 debug-levels : ' [ "debug" ]'
162- apt- gcc-version : ' 10'
175+ gcc-major -version : ' 10'
163176 extra-conf-options : ' --with-jvm-variants=zero --disable-precompiled-headers'
177+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
178+ make-arguments : ${{ github.event.inputs.make-arguments }}
164179 if : needs.select.outputs.linux-x64-variants == 'true'
165180
166181 build-linux-x64-hs-minimal :
@@ -171,8 +186,10 @@ jobs:
171186 platform : linux-x64
172187 make-target : ' hotspot'
173188 debug-levels : ' [ "debug" ]'
174- apt- gcc-version : ' 10'
189+ gcc-major -version : ' 10'
175190 extra-conf-options : ' --with-jvm-variants=minimal --disable-precompiled-headers'
191+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
192+ make-arguments : ${{ github.event.inputs.make-arguments }}
176193 if : needs.select.outputs.linux-x64-variants == 'true'
177194
178195 build-linux-x64-hs-optimized :
@@ -184,8 +201,10 @@ jobs:
184201 make-target : ' hotspot'
185202 # Technically this is not the "debug" level, but we can't inject a new matrix state for just this job
186203 debug-levels : ' [ "debug" ]'
187- apt- gcc-version : ' 10'
204+ gcc-major -version : ' 10'
188205 extra-conf-options : ' --with-debug-level=optimized --disable-precompiled-headers'
206+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
207+ make-arguments : ${{ github.event.inputs.make-arguments }}
189208 if : needs.select.outputs.linux-x64-variants == 'true'
190209
191210 build-linux-cross-compile :
@@ -194,6 +213,10 @@ jobs:
194213 - select
195214 - build-linux-x64
196215 uses : ./.github/workflows/build-cross-compile.yml
216+ with :
217+ gcc-major-version : ' 10'
218+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
219+ make-arguments : ${{ github.event.inputs.make-arguments }}
197220 if : needs.select.outputs.linux-cross-compile == 'true'
198221
199222 build-macos-x64 :
@@ -203,6 +226,8 @@ jobs:
203226 with :
204227 platform : macos-x64
205228 xcode-toolset-version : ' 11.7'
229+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
230+ make-arguments : ${{ github.event.inputs.make-arguments }}
206231 if : needs.select.outputs.macos-x64 == 'true'
207232
208233 build-macos-aarch64 :
@@ -213,6 +238,8 @@ jobs:
213238 platform : macos-aarch64
214239 xcode-toolset-version : ' 12.4'
215240 extra-conf-options : ' --openjdk-target=aarch64-apple-darwin'
241+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
242+ make-arguments : ${{ github.event.inputs.make-arguments }}
216243 if : needs.select.outputs.macos-aarch64 == 'true'
217244
218245 build-windows-x64 :
@@ -223,6 +250,8 @@ jobs:
223250 platform : windows-x64
224251 msvc-toolset-version : ' 14.29'
225252 msvc-toolset-architecture : ' x86.x64'
253+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
254+ make-arguments : ${{ github.event.inputs.make-arguments }}
226255 if : needs.select.outputs.windows-x64 == 'true'
227256
228257 build-windows-aarch64 :
@@ -235,6 +264,8 @@ jobs:
235264 msvc-toolset-architecture : ' arm64'
236265 make-target : ' hotspot'
237266 extra-conf-options : ' --openjdk-target=aarch64-unknown-cygwin'
267+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
268+ make-arguments : ${{ github.event.inputs.make-arguments }}
238269 if : needs.select.outputs.windows-aarch64 == 'true'
239270
240271 # ##
@@ -249,7 +280,7 @@ jobs:
249280 with :
250281 platform : linux-x64
251282 bootjdk-platform : linux-x64
252- runs-on : ubuntu-20 .04
283+ runs-on : ubuntu-22 .04
253284
254285 test-linux-x86 :
255286 name : linux-x86
@@ -259,7 +290,7 @@ jobs:
259290 with :
260291 platform : linux-x86
261292 bootjdk-platform : linux-x64
262- runs-on : ubuntu-20 .04
293+ runs-on : ubuntu-22 .04
263294
264295 test-macos-x64 :
265296 name : macos-x64
@@ -284,7 +315,7 @@ jobs:
284315 # Remove bundles so they are not misconstrued as binary distributions from the JDK project
285316 remove-bundles :
286317 name : ' Remove bundle artifacts'
287- runs-on : ubuntu-20 .04
318+ runs-on : ubuntu-22 .04
288319 if : always()
289320 needs :
290321 - build-linux-x64
0 commit comments