Skip to content

Commit ff5b4cd

Browse files
authored
Merge pull request #72 from openjdk/master
Merge
2 parents bd99525 + 3b44d7b commit ff5b4cd

File tree

3,564 files changed

+150655
-74850
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,564 files changed

+150655
-74850
lines changed

.github/actions/get-bundles/action.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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
3538
outputs:
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 }}
@@ -61,6 +67,15 @@ runs:
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
@@ -75,6 +90,20 @@ runs:
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

.github/actions/upload-bundles/action.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ inputs:
3535
bundle-suffix:
3636
description: 'Bundle name suffix, possibly empty'
3737
required: false
38+
static-suffix:
39+
description: 'Static JDK bundle name suffix, possibly empty'
40+
required: false
3841

3942
runs:
4043
using: composite
@@ -46,6 +49,8 @@ runs:
4649
# Rename bundles to consistent names
4750
jdk_bundle_zip="$(ls build/*/bundles/jdk-*_bin${{ inputs.debug-suffix }}.zip 2> /dev/null || true)"
4851
jdk_bundle_tar_gz="$(ls build/*/bundles/jdk-*_bin${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
52+
static_jdk_bundle_zip="$(ls build/*/bundles/static-jdk-*_bin${{ inputs.debug-suffix }}.zip 2> /dev/null || true)"
53+
static_jdk_bundle_tar_gz="$(ls build/*/bundles/static-jdk-*_bin${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
4954
symbols_bundle="$(ls build/*/bundles/jdk-*_bin${{ inputs.debug-suffix }}-symbols.tar.gz 2> /dev/null || true)"
5055
tests_bundle="$(ls build/*/bundles/jdk-*_bin-tests${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
5156
static_libs_bundle="$(ls build/*/bundles/jdk-*_bin-static-libs${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
@@ -58,6 +63,12 @@ runs:
5863
if [[ "$jdk_bundle_tar_gz" != "" ]]; then
5964
mv "$jdk_bundle_tar_gz" "bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz"
6065
fi
66+
if [[ "$static_jdk_bundle_zip" != "" ]]; then
67+
mv "$static_jdk_bundle_zip" "bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}.zip"
68+
fi
69+
if [[ "$static_jdk_bundle_tar_gz" != "" ]]; then
70+
mv "$static_jdk_bundle_tar_gz" "bundles/jdk-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}.tar.gz"
71+
fi
6172
if [[ "$symbols_bundle" != "" ]]; then
6273
mv "$symbols_bundle" "bundles/symbols-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz"
6374
fi
@@ -68,7 +79,7 @@ runs:
6879
mv "$static_libs_bundle" "bundles/static-libs-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz"
6980
fi
7081
71-
if [[ "$jdk_bundle_zip$jdk_bundle_tar_gz$symbols_bundle$tests_bundle$static_libs_bundle" != "" ]]; then
82+
if [[ "$jdk_bundle_zip$jdk_bundle_tar_gz$static_jdk_bundle_zip$static_jdk_bundle_tar_gz$symbols_bundle$tests_bundle$static_libs_bundle" != "" ]]; then
7283
echo 'bundles-found=true' >> $GITHUB_OUTPUT
7384
else
7485
echo 'bundles-found=false' >> $GITHUB_OUTPUT
@@ -78,7 +89,7 @@ runs:
7889
- name: 'Upload bundles artifact'
7990
uses: actions/upload-artifact@v4
8091
with:
81-
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.bundle-suffix }}
92+
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.static-suffix }}${{ inputs.bundle-suffix }}
8293
path: bundles
8394
retention-days: 1
8495
if: steps.bundles.outputs.bundles-found == 'true'

.github/workflows/build-alpine-linux.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ on:
5151
make-arguments:
5252
required: false
5353
type: string
54+
dry-run:
55+
required: false
56+
type: boolean
57+
default: false
5458

5559
jobs:
5660
build-linux:
@@ -104,9 +108,11 @@ jobs:
104108
make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
105109
platform: ${{ inputs.platform }}
106110
debug-suffix: '${{ matrix.suffix }}'
111+
if: ${{ inputs.dry-run == false }}
107112

108113
- name: 'Upload bundles'
109114
uses: ./.github/actions/upload-bundles
110115
with:
111116
platform: ${{ inputs.platform }}
112117
debug-suffix: '${{ matrix.suffix }}'
118+
if: ${{ inputs.dry-run == false }}

.github/workflows/build-cross-compile.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ on:
4040
make-arguments:
4141
required: false
4242
type: string
43+
dry-run:
44+
required: false
45+
type: boolean
46+
default: false
4347

4448
jobs:
4549
build-cross-compile:
@@ -189,4 +193,4 @@ jobs:
189193
with:
190194
make-target: 'hotspot ${{ inputs.make-arguments }}'
191195
platform: linux-${{ matrix.target-cpu }}
192-
if: steps.create-sysroot.outcome == 'success' || steps.get-cached-sysroot.outputs.cache-hit == 'true'
196+
if: ((steps.create-sysroot.outcome == 'success' || steps.get-cached-sysroot.outputs.cache-hit == 'true') && inputs.dry-run == false)

.github/workflows/build-linux.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,16 @@ on:
6161
make-arguments:
6262
required: false
6363
type: string
64+
dry-run:
65+
required: false
66+
type: boolean
67+
default: false
6468
bundle-suffix:
6569
required: false
6670
type: string
71+
static-suffix:
72+
required: false
73+
type: string
6774

6875
jobs:
6976
build-linux:
@@ -136,10 +143,13 @@ jobs:
136143
make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
137144
platform: ${{ inputs.platform }}
138145
debug-suffix: "${{ matrix.debug-level == 'debug' && '-debug' || '' }}"
146+
if: ${{ inputs.dry-run == false }}
139147

140148
- name: 'Upload bundles'
141149
uses: ./.github/actions/upload-bundles
142150
with:
143151
platform: ${{ inputs.platform }}
144152
debug-suffix: "${{ matrix.debug-level == 'debug' && '-debug' || '' }}"
145153
bundle-suffix: ${{ inputs.bundle-suffix }}
154+
static-suffix: ${{ inputs.static-suffix }}
155+
if: ${{ inputs.dry-run == false }}

.github/workflows/build-macos.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ on:
5454
make-arguments:
5555
required: false
5656
type: string
57+
dry-run:
58+
required: false
59+
type: boolean
60+
default: false
5761

5862
jobs:
5963
build-macos:
@@ -118,9 +122,11 @@ jobs:
118122
make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
119123
platform: ${{ inputs.platform }}
120124
debug-suffix: '${{ matrix.suffix }}'
125+
if: ${{ inputs.dry-run == false }}
121126

122127
- name: 'Upload bundles'
123128
uses: ./.github/actions/upload-bundles
124129
with:
125130
platform: ${{ inputs.platform }}
126131
debug-suffix: '${{ matrix.suffix }}'
132+
if: ${{ inputs.dry-run == false }}

.github/workflows/build-windows.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ on:
5454
make-arguments:
5555
required: false
5656
type: string
57+
dry-run:
58+
required: false
59+
type: boolean
60+
default: false
5761

5862
env:
5963
# These are needed to make the MSYS2 bash work properly
@@ -63,7 +67,7 @@ env:
6367
jobs:
6468
build-windows:
6569
name: build
66-
runs-on: windows-2019
70+
runs-on: windows-2025
6771
defaults:
6872
run:
6973
shell: bash
@@ -102,7 +106,7 @@ jobs:
102106
id: toolchain-check
103107
run: |
104108
set +e
105-
'/c/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/vc/auxiliary/build/vcvars64.bat' -vcvars_ver=${{ inputs.msvc-toolset-version }}
109+
'/c/Program Files/Microsoft Visual Studio/2022/Enterprise/vc/auxiliary/build/vcvars64.bat' -vcvars_ver=${{ inputs.msvc-toolset-version }}
106110
if [ $? -eq 0 ]; then
107111
echo "Toolchain is already installed"
108112
echo "toolchain-installed=true" >> $GITHUB_OUTPUT
@@ -115,7 +119,7 @@ jobs:
115119
run: |
116120
# Run Visual Studio Installer
117121
'/c/Program Files (x86)/Microsoft Visual Studio/Installer/vs_installer.exe' \
118-
modify --quiet --installPath 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise' \
122+
modify --quiet --installPath 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise' \
119123
--add Microsoft.VisualStudio.Component.VC.${{ inputs.msvc-toolset-version }}.${{ inputs.msvc-toolset-architecture }}
120124
if: steps.toolchain-check.outputs.toolchain-installed != 'true'
121125

@@ -139,6 +143,7 @@ jobs:
139143
# Set PATH to "", so just GITHUB_PATH is included
140144
PATH: ''
141145
shell: env /usr/bin/bash --login -eo pipefail {0}
146+
if: ${{ inputs.dry-run == false }}
142147

143148
- name: 'Build'
144149
id: build
@@ -147,9 +152,11 @@ jobs:
147152
make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
148153
platform: ${{ inputs.platform }}
149154
debug-suffix: '${{ matrix.suffix }}'
155+
if: ${{ inputs.dry-run == false }}
150156

151157
- name: 'Upload bundles'
152158
uses: ./.github/actions/upload-bundles
153159
with:
154160
platform: ${{ inputs.platform }}
155161
debug-suffix: '${{ matrix.suffix }}'
162+
if: ${{ inputs.dry-run == false }}

0 commit comments

Comments
 (0)