53
53
# ## Determine platforms to include
54
54
# ##
55
55
56
- select :
57
- name : ' Select platforms '
56
+ prepare :
57
+ name : ' Prepare the run '
58
58
runs-on : ubuntu-22.04
59
59
outputs :
60
60
linux-x64 : ${{ steps.include.outputs.linux-x64 }}
67
67
windows-aarch64 : ${{ steps.include.outputs.windows-aarch64 }}
68
68
69
69
steps :
70
- # This function must be inlined in main.yml, or we'd be forced to checkout the repo
70
+ - name : ' Checkout the scripts'
71
+ uses : actions/checkout@v4
72
+ with :
73
+ sparse-checkout : |
74
+ .github
75
+ make/conf/github-actions.conf
76
+
77
+ - name : ' Build JTReg'
78
+ id : jtreg
79
+ uses : ./.github/actions/build-jtreg
80
+
81
+ # TODO: Now that we are checking out the repo scripts, we can put the following code
82
+ # into a separate file
71
83
- name : ' Check what jobs to run'
72
84
id : include
73
85
run : |
@@ -123,18 +135,18 @@ jobs:
123
135
124
136
build-linux-x64 :
125
137
name : linux-x64
126
- needs : select
138
+ needs : prepare
127
139
uses : ./.github/workflows/build-linux.yml
128
140
with :
129
141
platform : linux-x64
130
142
gcc-major-version : ' 10'
131
143
configure-arguments : ${{ github.event.inputs.configure-arguments }}
132
144
make-arguments : ${{ github.event.inputs.make-arguments }}
133
- if : needs.select .outputs.linux-x64 == 'true'
145
+ if : needs.prepare .outputs.linux-x64 == 'true'
134
146
135
147
build-linux-x86-hs :
136
148
name : linux-x86-hs
137
- needs : select
149
+ needs : prepare
138
150
uses : ./.github/workflows/build-linux.yml
139
151
with :
140
152
platform : linux-x86
@@ -148,11 +160,11 @@ jobs:
148
160
extra-conf-options : ' --with-target-bits=32'
149
161
configure-arguments : ${{ github.event.inputs.configure-arguments }}
150
162
make-arguments : ${{ github.event.inputs.make-arguments }}
151
- if : needs.select .outputs.linux-x86-hs == 'true'
163
+ if : needs.prepare .outputs.linux-x86-hs == 'true'
152
164
153
165
build-linux-x64-hs-nopch :
154
166
name : linux-x64-hs-nopch
155
- needs : select
167
+ needs : prepare
156
168
uses : ./.github/workflows/build-linux.yml
157
169
with :
158
170
platform : linux-x64
@@ -162,11 +174,11 @@ jobs:
162
174
extra-conf-options : ' --disable-precompiled-headers'
163
175
configure-arguments : ${{ github.event.inputs.configure-arguments }}
164
176
make-arguments : ${{ github.event.inputs.make-arguments }}
165
- if : needs.select .outputs.linux-x64-variants == 'true'
177
+ if : needs.prepare .outputs.linux-x64-variants == 'true'
166
178
167
179
build-linux-x64-hs-zero :
168
180
name : linux-x64-hs-zero
169
- needs : select
181
+ needs : prepare
170
182
uses : ./.github/workflows/build-linux.yml
171
183
with :
172
184
platform : linux-x64
@@ -176,11 +188,11 @@ jobs:
176
188
extra-conf-options : ' --with-jvm-variants=zero --disable-precompiled-headers'
177
189
configure-arguments : ${{ github.event.inputs.configure-arguments }}
178
190
make-arguments : ${{ github.event.inputs.make-arguments }}
179
- if : needs.select .outputs.linux-x64-variants == 'true'
191
+ if : needs.prepare .outputs.linux-x64-variants == 'true'
180
192
181
193
build-linux-x64-hs-minimal :
182
194
name : linux-x64-hs-minimal
183
- needs : select
195
+ needs : prepare
184
196
uses : ./.github/workflows/build-linux.yml
185
197
with :
186
198
platform : linux-x64
@@ -190,11 +202,11 @@ jobs:
190
202
extra-conf-options : ' --with-jvm-variants=minimal --disable-precompiled-headers'
191
203
configure-arguments : ${{ github.event.inputs.configure-arguments }}
192
204
make-arguments : ${{ github.event.inputs.make-arguments }}
193
- if : needs.select .outputs.linux-x64-variants == 'true'
205
+ if : needs.prepare .outputs.linux-x64-variants == 'true'
194
206
195
207
build-linux-x64-hs-optimized :
196
208
name : linux-x64-hs-optimized
197
- needs : select
209
+ needs : prepare
198
210
uses : ./.github/workflows/build-linux.yml
199
211
with :
200
212
platform : linux-x64
@@ -205,58 +217,57 @@ jobs:
205
217
extra-conf-options : ' --with-debug-level=optimized --disable-precompiled-headers'
206
218
configure-arguments : ${{ github.event.inputs.configure-arguments }}
207
219
make-arguments : ${{ github.event.inputs.make-arguments }}
208
- if : needs.select .outputs.linux-x64-variants == 'true'
220
+ if : needs.prepare .outputs.linux-x64-variants == 'true'
209
221
210
222
build-linux-cross-compile :
211
223
name : linux-cross-compile
212
- needs :
213
- - select
224
+ needs : prepare
214
225
uses : ./.github/workflows/build-cross-compile.yml
215
226
with :
216
227
gcc-major-version : ' 10'
217
228
configure-arguments : ${{ github.event.inputs.configure-arguments }}
218
229
make-arguments : ${{ github.event.inputs.make-arguments }}
219
- if : needs.select .outputs.linux-cross-compile == 'true'
230
+ if : needs.prepare .outputs.linux-cross-compile == 'true'
220
231
221
232
build-macos-x64 :
222
233
name : macos-x64
223
- needs : select
234
+ needs : prepare
224
235
uses : ./.github/workflows/build-macos.yml
225
236
with :
226
237
platform : macos-x64
227
238
runs-on : ' macos-13'
228
239
xcode-toolset-version : ' 14.3.1'
229
240
configure-arguments : ${{ github.event.inputs.configure-arguments }}
230
241
make-arguments : ${{ github.event.inputs.make-arguments }}
231
- if : needs.select .outputs.macos-x64 == 'true'
242
+ if : needs.prepare .outputs.macos-x64 == 'true'
232
243
233
244
build-macos-aarch64 :
234
245
name : macos-aarch64
235
- needs : select
246
+ needs : prepare
236
247
uses : ./.github/workflows/build-macos.yml
237
248
with :
238
249
platform : macos-aarch64
239
250
runs-on : ' macos-14'
240
251
xcode-toolset-version : ' 15.4'
241
252
configure-arguments : ${{ github.event.inputs.configure-arguments }}
242
253
make-arguments : ${{ github.event.inputs.make-arguments }}
243
- if : needs.select .outputs.macos-aarch64 == 'true'
254
+ if : needs.prepare .outputs.macos-aarch64 == 'true'
244
255
245
256
build-windows-x64 :
246
257
name : windows-x64
247
- needs : select
258
+ needs : prepare
248
259
uses : ./.github/workflows/build-windows.yml
249
260
with :
250
261
platform : windows-x64
251
262
msvc-toolset-version : ' 14.29'
252
263
msvc-toolset-architecture : ' x86.x64'
253
264
configure-arguments : ${{ github.event.inputs.configure-arguments }}
254
265
make-arguments : ${{ github.event.inputs.make-arguments }}
255
- if : needs.select .outputs.windows-x64 == 'true'
266
+ if : needs.prepare .outputs.windows-x64 == 'true'
256
267
257
268
build-windows-aarch64 :
258
269
name : windows-aarch64
259
- needs : select
270
+ needs : prepare
260
271
uses : ./.github/workflows/build-windows.yml
261
272
with :
262
273
platform : windows-aarch64
@@ -266,7 +277,7 @@ jobs:
266
277
extra-conf-options : ' --openjdk-target=aarch64-unknown-cygwin'
267
278
configure-arguments : ${{ github.event.inputs.configure-arguments }}
268
279
make-arguments : ${{ github.event.inputs.make-arguments }}
269
- if : needs.select .outputs.windows-aarch64 == 'true'
280
+ if : needs.prepare .outputs.windows-aarch64 == 'true'
270
281
271
282
# ##
272
283
# ## Test jobs
1 commit comments
openjdk-notifier[bot] commentedon Feb 11, 2025
Review
Issues