36
36
description : ' Platform(s) to execute on (comma separated, e.g. "linux-x64, macos, aarch64")'
37
37
required : true
38
38
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
39
45
40
46
concurrency :
41
47
group : ${{ github.workflow }}-${{ github.ref }}
49
55
50
56
select :
51
57
name : ' Select platforms'
52
- runs-on : ubuntu-20 .04
58
+ runs-on : ubuntu-22 .04
53
59
outputs :
54
60
linux-x64 : ${{ steps.include.outputs.linux-x64 }}
55
61
linux-x86 : ${{ steps.include.outputs.linux-x86 }}
@@ -121,7 +127,9 @@ jobs:
121
127
uses : ./.github/workflows/build-linux.yml
122
128
with :
123
129
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 }}
125
133
# The linux-x64 jdk bundle is used as buildjdk for the cross-compile job
126
134
if : needs.select.outputs.linux-x64 == 'true' || needs.select.outputs.linux-cross-compile == 'true'
127
135
@@ -131,12 +139,15 @@ jobs:
131
139
uses : ./.github/workflows/build-linux.yml
132
140
with :
133
141
platform : linux-x86
134
- apt-gcc-version : ' 10-multilib'
142
+ gcc-major-version : ' 10'
143
+ gcc-package-suffix : ' -multilib'
135
144
apt-architecture : ' i386'
136
145
# Some multilib libraries do not have proper inter-dependencies, so we have to
137
146
# install their dependencies manually.
138
147
apt-extra-packages : ' libfreetype6-dev:i386 libtiff-dev:i386 libcupsimage2-dev:i386'
139
148
extra-conf-options : ' --with-target-bits=32'
149
+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
150
+ make-arguments : ${{ github.event.inputs.make-arguments }}
140
151
if : needs.select.outputs.linux-x86 == 'true'
141
152
142
153
build-linux-x64-hs-nopch :
@@ -147,8 +158,10 @@ jobs:
147
158
platform : linux-x64
148
159
make-target : ' hotspot'
149
160
debug-levels : ' [ "debug" ]'
150
- apt- gcc-version : ' 10'
161
+ gcc-major -version : ' 10'
151
162
extra-conf-options : ' --disable-precompiled-headers'
163
+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
164
+ make-arguments : ${{ github.event.inputs.make-arguments }}
152
165
if : needs.select.outputs.linux-x64-variants == 'true'
153
166
154
167
build-linux-x64-hs-zero :
@@ -159,8 +172,10 @@ jobs:
159
172
platform : linux-x64
160
173
make-target : ' hotspot'
161
174
debug-levels : ' [ "debug" ]'
162
- apt- gcc-version : ' 10'
175
+ gcc-major -version : ' 10'
163
176
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 }}
164
179
if : needs.select.outputs.linux-x64-variants == 'true'
165
180
166
181
build-linux-x64-hs-minimal :
@@ -171,8 +186,10 @@ jobs:
171
186
platform : linux-x64
172
187
make-target : ' hotspot'
173
188
debug-levels : ' [ "debug" ]'
174
- apt- gcc-version : ' 10'
189
+ gcc-major -version : ' 10'
175
190
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 }}
176
193
if : needs.select.outputs.linux-x64-variants == 'true'
177
194
178
195
build-linux-x64-hs-optimized :
@@ -184,8 +201,10 @@ jobs:
184
201
make-target : ' hotspot'
185
202
# Technically this is not the "debug" level, but we can't inject a new matrix state for just this job
186
203
debug-levels : ' [ "debug" ]'
187
- apt- gcc-version : ' 10'
204
+ gcc-major -version : ' 10'
188
205
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 }}
189
208
if : needs.select.outputs.linux-x64-variants == 'true'
190
209
191
210
build-linux-cross-compile :
@@ -194,6 +213,10 @@ jobs:
194
213
- select
195
214
- build-linux-x64
196
215
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 }}
197
220
if : needs.select.outputs.linux-cross-compile == 'true'
198
221
199
222
build-macos-x64 :
@@ -203,6 +226,8 @@ jobs:
203
226
with :
204
227
platform : macos-x64
205
228
xcode-toolset-version : ' 11.7'
229
+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
230
+ make-arguments : ${{ github.event.inputs.make-arguments }}
206
231
if : needs.select.outputs.macos-x64 == 'true'
207
232
208
233
build-macos-aarch64 :
@@ -213,6 +238,8 @@ jobs:
213
238
platform : macos-aarch64
214
239
xcode-toolset-version : ' 12.4'
215
240
extra-conf-options : ' --openjdk-target=aarch64-apple-darwin'
241
+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
242
+ make-arguments : ${{ github.event.inputs.make-arguments }}
216
243
if : needs.select.outputs.macos-aarch64 == 'true'
217
244
218
245
build-windows-x64 :
@@ -223,6 +250,8 @@ jobs:
223
250
platform : windows-x64
224
251
msvc-toolset-version : ' 14.29'
225
252
msvc-toolset-architecture : ' x86.x64'
253
+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
254
+ make-arguments : ${{ github.event.inputs.make-arguments }}
226
255
if : needs.select.outputs.windows-x64 == 'true'
227
256
228
257
build-windows-aarch64 :
@@ -235,6 +264,8 @@ jobs:
235
264
msvc-toolset-architecture : ' arm64'
236
265
make-target : ' hotspot'
237
266
extra-conf-options : ' --openjdk-target=aarch64-unknown-cygwin'
267
+ configure-arguments : ${{ github.event.inputs.configure-arguments }}
268
+ make-arguments : ${{ github.event.inputs.make-arguments }}
238
269
if : needs.select.outputs.windows-aarch64 == 'true'
239
270
240
271
# ##
@@ -249,7 +280,7 @@ jobs:
249
280
with :
250
281
platform : linux-x64
251
282
bootjdk-platform : linux-x64
252
- runs-on : ubuntu-20 .04
283
+ runs-on : ubuntu-22 .04
253
284
254
285
test-linux-x86 :
255
286
name : linux-x86
@@ -259,7 +290,7 @@ jobs:
259
290
with :
260
291
platform : linux-x86
261
292
bootjdk-platform : linux-x64
262
- runs-on : ubuntu-20 .04
293
+ runs-on : ubuntu-22 .04
263
294
264
295
test-macos-x64 :
265
296
name : macos-x64
@@ -284,7 +315,7 @@ jobs:
284
315
# Remove bundles so they are not misconstrued as binary distributions from the JDK project
285
316
remove-bundles :
286
317
name : ' Remove bundle artifacts'
287
- runs-on : ubuntu-20 .04
318
+ runs-on : ubuntu-22 .04
288
319
if : always()
289
320
needs :
290
321
- build-linux-x64
0 commit comments