152 return
153 elif [[ $GITHUB_EVENT_NAME == push ]]; then
154 # Cut out the real branch name
155 BRANCH=${GITHUB_REF##*/}
156
157 # Dry run rebuilds the caches in current branch, so they can be reused
158 # for any child PR branches. Because of this, we want to trigger this
159 # workflow in master branch, so that actual PR branches can use the cache.
160 # This workflow would trigger every time contributors sync their master
161 # branches in their personal forks.
162 if [[ $BRANCH == "master" ]]; then
163 echo 'true'
164 return
165 fi
166
167 # ...same for stabilization branches
168 if [[ $BRANCH =~ "jdk(.*)" ]]; then
169 echo 'true'
170 return
171 fi
172 fi
173
174 echo 'false'
175 }
176
177 echo "linux-x64=$(check_platform linux-x64 linux x64)" >> $GITHUB_OUTPUT
178 echo "linux-x64-variants=$(check_platform linux-x64-variants variants)" >> $GITHUB_OUTPUT
179 echo "linux-cross-compile=$(check_platform linux-cross-compile cross-compile)" >> $GITHUB_OUTPUT
180 echo "alpine-linux-x64=$(check_platform alpine-linux-x64 alpine-linux x64)" >> $GITHUB_OUTPUT
181 echo "macos-x64=$(check_platform macos-x64 macos x64)" >> $GITHUB_OUTPUT
182 echo "macos-aarch64=$(check_platform macos-aarch64 macos aarch64)" >> $GITHUB_OUTPUT
183 echo "windows-x64=$(check_platform windows-x64 windows x64)" >> $GITHUB_OUTPUT
184 echo "windows-aarch64=$(check_platform windows-aarch64 windows aarch64)" >> $GITHUB_OUTPUT
185 echo "docs=$(check_platform docs)" >> $GITHUB_OUTPUT
186 echo "dry-run=$(check_dry_run)" >> $GITHUB_OUTPUT
187
188 ###
189 ### Build jobs
190 ###
191
199 configure-arguments: ${{ github.event.inputs.configure-arguments }}
200 make-arguments: ${{ github.event.inputs.make-arguments }}
201 dry-run: ${{ needs.prepare.outputs.dry-run == 'true' }}
202 if: needs.prepare.outputs.linux-x64 == 'true'
203
204 build-linux-x64-hs-nopch:
205 name: linux-x64-hs-nopch
206 needs: prepare
207 uses: ./.github/workflows/build-linux.yml
208 with:
209 platform: linux-x64
210 make-target: 'hotspot'
211 debug-levels: '[ "debug" ]'
212 gcc-major-version: '10'
213 extra-conf-options: '--disable-precompiled-headers'
214 configure-arguments: ${{ github.event.inputs.configure-arguments }}
215 make-arguments: ${{ github.event.inputs.make-arguments }}
216 dry-run: ${{ needs.prepare.outputs.dry-run == 'true' }}
217 if: needs.prepare.outputs.linux-x64-variants == 'true'
218
219 build-linux-x64-hs-zero:
220 name: linux-x64-hs-zero
221 needs: prepare
222 uses: ./.github/workflows/build-linux.yml
223 with:
224 platform: linux-x64
225 make-target: 'hotspot'
226 debug-levels: '[ "debug" ]'
227 gcc-major-version: '10'
228 extra-conf-options: '--with-jvm-variants=zero --disable-precompiled-headers'
229 configure-arguments: ${{ github.event.inputs.configure-arguments }}
230 make-arguments: ${{ github.event.inputs.make-arguments }}
231 dry-run: ${{ needs.prepare.outputs.dry-run == 'true' }}
232 if: needs.prepare.outputs.linux-x64-variants == 'true'
233
234 build-linux-x64-hs-minimal:
235 name: linux-x64-hs-minimal
236 needs: prepare
237 uses: ./.github/workflows/build-linux.yml
238 with:
239 platform: linux-x64
240 make-target: 'hotspot'
241 debug-levels: '[ "debug" ]'
242 gcc-major-version: '10'
243 extra-conf-options: '--with-jvm-variants=minimal --disable-precompiled-headers'
244 configure-arguments: ${{ github.event.inputs.configure-arguments }}
245 make-arguments: ${{ github.event.inputs.make-arguments }}
246 dry-run: ${{ needs.prepare.outputs.dry-run == 'true' }}
247 if: needs.prepare.outputs.linux-x64-variants == 'true'
248
249 build-linux-x64-hs-optimized:
250 name: linux-x64-hs-optimized
251 needs: prepare
252 uses: ./.github/workflows/build-linux.yml
|
152 return
153 elif [[ $GITHUB_EVENT_NAME == push ]]; then
154 # Cut out the real branch name
155 BRANCH=${GITHUB_REF##*/}
156
157 # Dry run rebuilds the caches in current branch, so they can be reused
158 # for any child PR branches. Because of this, we want to trigger this
159 # workflow in master branch, so that actual PR branches can use the cache.
160 # This workflow would trigger every time contributors sync their master
161 # branches in their personal forks.
162 if [[ $BRANCH == "master" ]]; then
163 echo 'true'
164 return
165 fi
166
167 # ...same for stabilization branches
168 if [[ $BRANCH =~ "jdk(.*)" ]]; then
169 echo 'true'
170 return
171 fi
172
173 # ...same for project branch
174 if [[ $BRANCH == "lworld" ]]; then
175 echo 'true'
176 return
177 fi
178 fi
179
180 echo 'false'
181 }
182
183 echo "linux-x64=$(check_platform linux-x64 linux x64)" >> $GITHUB_OUTPUT
184 echo "linux-x64-variants=$(check_platform linux-x64-variants variants)" >> $GITHUB_OUTPUT
185 echo "linux-cross-compile=$(check_platform linux-cross-compile cross-compile)" >> $GITHUB_OUTPUT
186 echo "alpine-linux-x64=$(check_platform alpine-linux-x64 alpine-linux x64)" >> $GITHUB_OUTPUT
187 echo "macos-x64=$(check_platform macos-x64 macos x64)" >> $GITHUB_OUTPUT
188 echo "macos-aarch64=$(check_platform macos-aarch64 macos aarch64)" >> $GITHUB_OUTPUT
189 echo "windows-x64=$(check_platform windows-x64 windows x64)" >> $GITHUB_OUTPUT
190 echo "windows-aarch64=$(check_platform windows-aarch64 windows aarch64)" >> $GITHUB_OUTPUT
191 echo "docs=$(check_platform docs)" >> $GITHUB_OUTPUT
192 echo "dry-run=$(check_dry_run)" >> $GITHUB_OUTPUT
193
194 ###
195 ### Build jobs
196 ###
197
205 configure-arguments: ${{ github.event.inputs.configure-arguments }}
206 make-arguments: ${{ github.event.inputs.make-arguments }}
207 dry-run: ${{ needs.prepare.outputs.dry-run == 'true' }}
208 if: needs.prepare.outputs.linux-x64 == 'true'
209
210 build-linux-x64-hs-nopch:
211 name: linux-x64-hs-nopch
212 needs: prepare
213 uses: ./.github/workflows/build-linux.yml
214 with:
215 platform: linux-x64
216 make-target: 'hotspot'
217 debug-levels: '[ "debug" ]'
218 gcc-major-version: '10'
219 extra-conf-options: '--disable-precompiled-headers'
220 configure-arguments: ${{ github.event.inputs.configure-arguments }}
221 make-arguments: ${{ github.event.inputs.make-arguments }}
222 dry-run: ${{ needs.prepare.outputs.dry-run == 'true' }}
223 if: needs.prepare.outputs.linux-x64-variants == 'true'
224
225 # build-linux-x64-hs-zero:
226 # name: linux-x64-hs-zero
227 # needs: prepare
228 # uses: ./.github/workflows/build-linux.yml
229 # with:
230 # platform: linux-x64
231 # make-target: 'hotspot'
232 # debug-levels: '[ "debug" ]'
233 # gcc-major-version: '10'
234 # extra-conf-options: '--with-jvm-variants=zero --disable-precompiled-headers'
235 # configure-arguments: ${{ github.event.inputs.configure-arguments }}
236 # make-arguments: ${{ github.event.inputs.make-arguments }}
237 # dry-run: ${{ needs.prepare.outputs.dry-run == 'true' }}
238 # if: needs.prepare.outputs.linux-x64-variants == 'true'
239
240 build-linux-x64-hs-minimal:
241 name: linux-x64-hs-minimal
242 needs: prepare
243 uses: ./.github/workflows/build-linux.yml
244 with:
245 platform: linux-x64
246 make-target: 'hotspot'
247 debug-levels: '[ "debug" ]'
248 gcc-major-version: '10'
249 extra-conf-options: '--with-jvm-variants=minimal --disable-precompiled-headers'
250 configure-arguments: ${{ github.event.inputs.configure-arguments }}
251 make-arguments: ${{ github.event.inputs.make-arguments }}
252 dry-run: ${{ needs.prepare.outputs.dry-run == 'true' }}
253 if: needs.prepare.outputs.linux-x64-variants == 'true'
254
255 build-linux-x64-hs-optimized:
256 name: linux-x64-hs-optimized
257 needs: prepare
258 uses: ./.github/workflows/build-linux.yml
|