4040 platforms :
4141 description : ' Platform(s) to execute on (comma separated, e.g. "linux-x64, macos, aarch64")'
4242 required : true
43- default : ' linux-x64, linux-x86, linux-x64-variants, linux-cross-compile, macos-x64, macos-aarch64, windows-x64, windows-aarch64, docs'
43+ default : ' linux-x64, linux-x86-hs , linux-x64-variants, linux-cross-compile, macos-x64, macos-aarch64, windows-x64, windows-aarch64, docs'
4444 configure-arguments :
4545 description : ' Additional configure arguments'
4646 required : false
6565 runs-on : ubuntu-22.04
6666 outputs :
6767 linux-x64 : ${{ steps.include.outputs.linux-x64 }}
68- linux-x86 : ${{ steps.include.outputs.linux-x86 }}
68+ linux-x86-hs : ${{ steps.include.outputs.linux-x86-hs }}
6969 linux-x64-variants : ${{ steps.include.outputs.linux-x64-variants }}
7070 linux-cross-compile : ${{ steps.include.outputs.linux-cross-compile }}
7171 macos-x64 : ${{ steps.include.outputs.macos-x64 }}
@@ -118,7 +118,7 @@ jobs:
118118 }
119119
120120 echo "linux-x64=$(check_platform linux-x64 linux x64)" >> $GITHUB_OUTPUT
121- echo "linux-x86=$(check_platform linux-x86 linux x86)" >> $GITHUB_OUTPUT
121+ echo "linux-x86-hs =$(check_platform linux-x86-hs linux x86)" >> $GITHUB_OUTPUT
122122 echo "linux-x64-variants=$(check_platform linux-x64-variants variants)" >> $GITHUB_OUTPUT
123123 echo "linux-cross-compile=$(check_platform linux-cross-compile cross-compile)" >> $GITHUB_OUTPUT
124124 echo "macos-x64=$(check_platform macos-x64 macos x64)" >> $GITHUB_OUTPUT
@@ -142,12 +142,13 @@ jobs:
142142 make-arguments : ${{ github.event.inputs.make-arguments }}
143143 if : needs.select.outputs.linux-x64 == 'true'
144144
145- build-linux-x86 :
146- name : linux-x86
145+ build-linux-x86-hs :
146+ name : linux-x86-hs
147147 needs : select
148148 uses : ./.github/workflows/build-linux.yml
149149 with :
150150 platform : linux-x86
151+ make-target : ' hotspot'
151152 gcc-major-version : ' 10'
152153 gcc-package-suffix : ' -multilib'
153154 apt-architecture : ' i386'
@@ -157,7 +158,7 @@ jobs:
157158 extra-conf-options : ' --with-target-bits=32 --enable-fallback-linker --enable-libffi-bundling'
158159 configure-arguments : ${{ github.event.inputs.configure-arguments }}
159160 make-arguments : ${{ github.event.inputs.make-arguments }}
160- if : needs.select.outputs.linux-x86 == 'true'
161+ if : needs.select.outputs.linux-x86-hs == 'true'
161162
162163 build-linux-x64-hs-nopch :
163164 name : linux-x64-hs-nopch
@@ -307,16 +308,6 @@ jobs:
307308 bootjdk-platform : linux-x64
308309 runs-on : ubuntu-22.04
309310
310- test-linux-x86 :
311- name : linux-x86
312- needs :
313- - build-linux-x86
314- uses : ./.github/workflows/test.yml
315- with :
316- platform : linux-x86
317- bootjdk-platform : linux-x64
318- runs-on : ubuntu-22.04
319-
320311 test-macos-x64 :
321312 name : macos-x64
322313 needs :
@@ -355,7 +346,7 @@ jobs:
355346 if : ${{ github.event_name != 'pull_request' || github.repository != 'SAP/SapMachine' }}
356347 needs :
357348 - build-linux-x64
358- - build-linux-x86
349+ - build-linux-x86-hs
359350 - build-linux-x64-hs-nopch
360351 - build-linux-x64-hs-zero
361352 - build-linux-x64-hs-minimal
@@ -366,31 +357,28 @@ jobs:
366357 - build-windows-x64
367358 - build-windows-aarch64
368359 - test-linux-x64
369- - test-linux-x86
370360 - test-macos-x64
361+ - test-macos-aarch64
371362 - test-windows-x64
372363
373364 steps :
374- # Hack to get hold of the api environment variables that are only defined for actions
375- - name : ' Get API configuration'
376- id : api
377- uses : actions/github-script@v7
378- with :
379- script : ' return { url: process.env["ACTIONS_RUNTIME_URL"], token: process.env["ACTIONS_RUNTIME_TOKEN"] }'
380-
381365 - name : ' Remove bundle artifacts'
382366 run : |
383367 # Find and remove all bundle artifacts
384- ALL_ARTIFACT_URLS="$(curl -s \
385- -H 'Accept: application/json;api-version=6.0-preview' \
386- -H 'Authorization: Bearer ${{ fromJson(steps.api.outputs.result).token }}' \
387- '${{ fromJson(steps.api.outputs.result).url }}_apis/pipelines/workflows/${{ github.run_id }}/artifacts?api-version=6.0-preview')"
388- BUNDLE_ARTIFACT_URLS="$(echo "$ALL_ARTIFACT_URLS" | jq -r -c '.value | map(select(.name|startswith("bundles-"))) | .[].url')"
389- for url in $BUNDLE_ARTIFACT_URLS; do
390- echo "Removing $url"
391- curl -s \
392- -H 'Accept: application/json;api-version=6.0-preview' \
393- -H 'Authorization: Bearer ${{ fromJson(steps.api.outputs.result).token }}' \
394- -X DELETE "$url" \
368+ # See: https://docs.github.com/en/rest/actions/artifacts?apiVersion=2022-11-28
369+ ALL_ARTIFACT_IDS="$(curl -sL \
370+ -H 'Accept: application/vnd.github+json' \
371+ -H 'Authorization: Bearer ${{ github.token }}' \
372+ -H 'X-GitHub-Api-Version: 2022-11-28' \
373+ '${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts?per_page=100')"
374+ BUNDLE_ARTIFACT_IDS="$(echo "$ALL_ARTIFACT_IDS" | jq -r -c '.artifacts | map(select(.name|startswith("bundles-"))) | .[].id')"
375+ for id in $BUNDLE_ARTIFACT_IDS; do
376+ echo "Removing $id"
377+ curl -sL \
378+ -X DELETE \
379+ -H 'Accept: application/vnd.github+json' \
380+ -H 'Authorization: Bearer ${{ github.token }}' \
381+ -H 'X-GitHub-Api-Version: 2022-11-28' \
382+ "${{ github.api_url }}/repos/${{ github.repository }}/actions/artifacts/$id" \
395383 || echo "Failed to remove bundle"
396384 done
0 commit comments