3636 platforms :
3737 description : ' Platform(s) to execute on (comma separated, e.g. "linux-x64, macos, aarch64")'
3838 required : true
39- default : ' linux-x64, linux-x86, linux-x64-variants, linux-cross-compile, macos-x64, macos-aarch64, windows-x64, windows-aarch64, docs'
39+ default : ' linux-x64, linux-x86-hs , linux-x64-variants, linux-cross-compile, macos-x64, macos-aarch64, windows-x64, windows-aarch64, docs'
4040 configure-arguments :
4141 description : ' Additional configure arguments'
4242 required : false
5959 runs-on : ubuntu-22.04
6060 outputs :
6161 linux-x64 : ${{ steps.include.outputs.linux-x64 }}
62- linux-x86 : ${{ steps.include.outputs.linux-x86 }}
62+ linux-x86-hs : ${{ steps.include.outputs.linux-x86-hs }}
6363 linux-x64-variants : ${{ steps.include.outputs.linux-x64-variants }}
6464 linux-cross-compile : ${{ steps.include.outputs.linux-cross-compile }}
6565 macos-x64 : ${{ steps.include.outputs.macos-x64 }}
@@ -111,7 +111,7 @@ jobs:
111111 }
112112
113113 echo "linux-x64=$(check_platform linux-x64 linux x64)" >> $GITHUB_OUTPUT
114- echo "linux-x86=$(check_platform linux-x86 linux x86)" >> $GITHUB_OUTPUT
114+ echo "linux-x86-hs =$(check_platform linux-x86-hs linux x86)" >> $GITHUB_OUTPUT
115115 echo "linux-x64-variants=$(check_platform linux-x64-variants variants)" >> $GITHUB_OUTPUT
116116 echo "linux-cross-compile=$(check_platform linux-cross-compile cross-compile)" >> $GITHUB_OUTPUT
117117 echo "macos-x64=$(check_platform macos-x64 macos x64)" >> $GITHUB_OUTPUT
@@ -135,12 +135,13 @@ jobs:
135135 make-arguments : ${{ github.event.inputs.make-arguments }}
136136 if : needs.select.outputs.linux-x64 == 'true'
137137
138- build-linux-x86 :
139- name : linux-x86
138+ build-linux-x86-hs :
139+ name : linux-x86-hs
140140 needs : select
141141 uses : ./.github/workflows/build-linux.yml
142142 with :
143143 platform : linux-x86
144+ make-target : ' hotspot'
144145 gcc-major-version : ' 10'
145146 gcc-package-suffix : ' -multilib'
146147 apt-architecture : ' i386'
@@ -150,7 +151,7 @@ jobs:
150151 extra-conf-options : ' --with-target-bits=32 --enable-fallback-linker --enable-libffi-bundling'
151152 configure-arguments : ${{ github.event.inputs.configure-arguments }}
152153 make-arguments : ${{ github.event.inputs.make-arguments }}
153- if : needs.select.outputs.linux-x86 == 'true'
154+ if : needs.select.outputs.linux-x86-hs == 'true'
154155
155156 build-linux-x64-hs-nopch :
156157 name : linux-x64-hs-nopch
@@ -300,16 +301,6 @@ jobs:
300301 bootjdk-platform : linux-x64
301302 runs-on : ubuntu-22.04
302303
303- test-linux-x86 :
304- name : linux-x86
305- needs :
306- - build-linux-x86
307- uses : ./.github/workflows/test.yml
308- with :
309- platform : linux-x86
310- bootjdk-platform : linux-x64
311- runs-on : ubuntu-22.04
312-
313304 test-macos-x64 :
314305 name : macos-x64
315306 needs :
@@ -347,7 +338,7 @@ jobs:
347338 if : always()
348339 needs :
349340 - build-linux-x64
350- - build-linux-x86
341+ - build-linux-x86-hs
351342 - build-linux-x64-hs-nopch
352343 - build-linux-x64-hs-zero
353344 - build-linux-x64-hs-minimal
@@ -358,31 +349,28 @@ jobs:
358349 - build-windows-x64
359350 - build-windows-aarch64
360351 - test-linux-x64
361- - test-linux-x86
362352 - test-macos-x64
353+ - test-macos-aarch64
363354 - test-windows-x64
364355
365356 steps :
366- # Hack to get hold of the api environment variables that are only defined for actions
367- - name : ' Get API configuration'
368- id : api
369- uses : actions/github-script@v7
370- with :
371- script : ' return { url: process.env["ACTIONS_RUNTIME_URL"], token: process.env["ACTIONS_RUNTIME_TOKEN"] }'
372-
373357 - name : ' Remove bundle artifacts'
374358 run : |
375359 # Find and remove all bundle artifacts
376- ALL_ARTIFACT_URLS="$(curl -s \
377- -H 'Accept: application/json;api-version=6.0-preview' \
378- -H 'Authorization: Bearer ${{ fromJson(steps.api.outputs.result).token }}' \
379- '${{ fromJson(steps.api.outputs.result).url }}_apis/pipelines/workflows/${{ github.run_id }}/artifacts?api-version=6.0-preview')"
380- BUNDLE_ARTIFACT_URLS="$(echo "$ALL_ARTIFACT_URLS" | jq -r -c '.value | map(select(.name|startswith("bundles-"))) | .[].url')"
381- for url in $BUNDLE_ARTIFACT_URLS; do
382- echo "Removing $url"
383- curl -s \
384- -H 'Accept: application/json;api-version=6.0-preview' \
385- -H 'Authorization: Bearer ${{ fromJson(steps.api.outputs.result).token }}' \
386- -X DELETE "$url" \
360+ # See: https://docs.github.com/en/rest/actions/artifacts?apiVersion=2022-11-28
361+ ALL_ARTIFACT_IDS="$(curl -sL \
362+ -H 'Accept: application/vnd.github+json' \
363+ -H 'Authorization: Bearer ${{ github.token }}' \
364+ -H 'X-GitHub-Api-Version: 2022-11-28' \
365+ '${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts?per_page=100')"
366+ BUNDLE_ARTIFACT_IDS="$(echo "$ALL_ARTIFACT_IDS" | jq -r -c '.artifacts | map(select(.name|startswith("bundles-"))) | .[].id')"
367+ for id in $BUNDLE_ARTIFACT_IDS; do
368+ echo "Removing $id"
369+ curl -sL \
370+ -X DELETE \
371+ -H 'Accept: application/vnd.github+json' \
372+ -H 'Authorization: Bearer ${{ github.token }}' \
373+ -H 'X-GitHub-Api-Version: 2022-11-28' \
374+ "${{ github.api_url }}/repos/${{ github.repository }}/actions/artifacts/$id" \
387375 || echo "Failed to remove bundle"
388376 done
0 commit comments