@@ -32,10 +32,16 @@ inputs:
3232 debug-suffix :
3333 description : ' File name suffix denoting debug level, possibly empty'
3434 required : false
35+ static-suffix :
36+ description : ' Static bundle file name suffix'
37+ required : false
3538outputs :
3639 jdk-path :
3740 description : ' Path to the installed JDK bundle'
3841 value : ${{ steps.path-name.outputs.jdk }}
42+ static-jdk-path :
43+ description : ' Path to the installed static JDK bundle'
44+ value : ${{ steps.path-name.outputs.static_jdk }}
3945 symbols-path :
4046 description : ' Path to the installed symbols bundle'
4147 value : ${{ steps.path-name.outputs.symbols }}
6167 path : bundles
6268 if : steps.download-bundles.outcome == 'failure'
6369
70+ - name : ' Download static bundles artifact'
71+ id : download-static-bundles
72+ uses : actions/download-artifact@v4
73+ with :
74+ name : bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}
75+ path : bundles
76+ continue-on-error : true
77+ if : ${{ inputs.static-suffix == '-static' }}
78+
6479 - name : ' Unpack bundles'
6580 run : |
6681 if [[ -e bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}.zip ]]; then
7590 tar -xf bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz -C bundles/jdk
7691 fi
7792
93+ if [[ '${{ inputs.static-suffix }}' == '-static' ]]; then
94+ if [[ -e bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}.zip ]]; then
95+ echo 'Unpacking static jdk bundle...'
96+ mkdir -p bundles/static-jdk
97+ unzip -q bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}.zip -d bundles/static-jdk
98+ fi
99+
100+ if [[ -e bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}.tar.gz ]]; then
101+ echo 'Unpacking static jdk bundle...'
102+ mkdir -p bundles/static-jdk
103+ tar -xf bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}.tar.gz -C bundles/static-jdk
104+ fi
105+ fi
106+
78107 if [[ -e bundles/symbols-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz ]]; then
79108 echo 'Unpacking symbols bundle...'
80109 mkdir -p bundles/symbols
@@ -106,4 +135,12 @@ runs:
106135 echo "jdk=$jdk_dir" >> $GITHUB_OUTPUT
107136 echo "symbols=$symbols_dir" >> $GITHUB_OUTPUT
108137 echo "tests=$tests_dir" >> $GITHUB_OUTPUT
138+
139+ if [[ '${{ inputs.static-suffix }}' == '-static' ]]; then
140+ static_jdk_dir="$GITHUB_WORKSPACE/$(dirname $(find bundles/static-jdk -name bin -type d))"
141+ if [[ '${{ runner.os }}' == 'Windows' ]]; then
142+ static_jdk_dir="$(cygpath $static_jdk_dir)"
143+ fi
144+ echo "static_jdk=$static_jdk_dir" >> $GITHUB_OUTPUT
145+ fi
109146 shell : bash
0 commit comments