Skip to content
This repository was archived by the owner on May 29, 2024. It is now read-only.

Commit e7d418a

Browse files
[GR-48314] Merge tag jdk-17.0.9+4.
PullRequest: labsjdk-ce-17/119
2 parents 55edc9a + ab42e2a commit e7d418a

File tree

87 files changed

+3844
-1664
lines changed

Some content is hidden

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

87 files changed

+3844
-1664
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ runs:
3535
with:
3636
install: 'autoconf tar unzip zip make'
3737
path-type: minimal
38-
location: msys2
38+
location: ${{ runner.tool_cache }}/msys2
3939

4040
# We can't run bash until this is completed, so stick with pwsh
4141
- name: 'Set MSYS2 path'
4242
run: |
4343
# Prepend msys2/msys64/usr/bin to the PATH
44-
echo "$env:GITHUB_WORKSPACE/msys2/msys64/usr/bin" >> $env:GITHUB_PATH
44+
echo "$env:RUNNER_TOOL_CACHE/msys2/msys64/usr/bin" >> $env:GITHUB_PATH
4545
shell: pwsh

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

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,23 @@ on:
2929
workflow_call:
3030
inputs:
3131
gcc-major-version:
32-
required: false
32+
required: true
3333
type: string
34-
default: '10'
3534
apt-gcc-version:
35+
required: true
36+
type: string
37+
apt-gcc-cross-version:
38+
required: true
39+
type: string
40+
extra-conf-options:
41+
required: false
42+
type: string
43+
configure-arguments:
3644
required: false
3745
type: string
38-
default: '10.4.0-4ubuntu1~22.04'
39-
apt-gcc-cross-suffix:
46+
make-arguments:
4047
required: false
4148
type: string
42-
default: 'cross1'
4349

4450
jobs:
4551
build-cross-compile:
@@ -109,8 +115,8 @@ jobs:
109115
sudo apt-get install \
110116
gcc-${{ inputs.gcc-major-version }}=${{ inputs.apt-gcc-version }} \
111117
g++-${{ inputs.gcc-major-version }}=${{ inputs.apt-gcc-version }} \
112-
gcc-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-version }}${{ inputs.apt-gcc-cross-suffix }} \
113-
g++-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-version }}${{ inputs.apt-gcc-cross-suffix }} \
118+
gcc-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-cross-version }} \
119+
g++-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-cross-version }} \
114120
libxrandr-dev libxtst-dev libcups2-dev libasound2-dev
115121
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ inputs.gcc-major-version }} 100 --slave /usr/bin/g++ g++ /usr/bin/g++-${{ inputs.gcc-major-version }}
116122
@@ -127,11 +133,12 @@ jobs:
127133

128134
- name: 'Create sysroot'
129135
run: >
130-
sudo qemu-debootstrap
136+
sudo debootstrap
131137
--arch=${{ matrix.debian-arch }}
132138
--verbose
133139
--include=fakeroot,symlinks,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype6-dev,libpng-dev
134140
--resolve-deps
141+
--variant=minbase
135142
${{ matrix.debian-version }}
136143
sysroot
137144
${{ matrix.debian-repository }}
@@ -142,7 +149,10 @@ jobs:
142149
# Prepare sysroot and remove unused files to minimize cache
143150
sudo chroot sysroot symlinks -cr .
144151
sudo chown ${USER} -R sysroot
145-
rm -rf sysroot/{dev,proc,run,sys}
152+
rm -rf sysroot/{dev,proc,run,sys,var}
153+
rm -rf sysroot/usr/{sbin,bin,share}
154+
rm -rf sysroot/usr/lib/{apt,gcc,udev,systemd}
155+
rm -rf sysroot/usr/libexec/gcc
146156
if: steps.get-cached-sysroot.outputs.cache-hit != 'true'
147157

148158
- name: 'Configure'
@@ -157,12 +167,16 @@ jobs:
157167
--openjdk-target=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}
158168
--with-sysroot=sysroot
159169
--with-build-jdk=${{ steps.buildjdk.outputs.jdk-path }}
160-
CC=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-gcc-10
161-
CXX=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-g++-10
170+
CC=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-gcc-${{ inputs.gcc-major-version }}
171+
CXX=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-g++-${{ inputs.gcc-major-version }}
172+
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
173+
echo "Dumping config.log:" &&
174+
cat config.log &&
175+
exit 1)
162176
163177
- name: 'Build'
164178
id: build
165179
uses: ./.github/actions/do-build
166180
with:
167-
make-target: 'hotspot'
181+
make-target: 'hotspot ${{ inputs.make-arguments }}'
168182
platform: linux-${{ matrix.target-cpu }}

.github/workflows/build-linux.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ on:
4242
required: false
4343
type: string
4444
default: '[ "debug", "release" ]'
45+
gcc-major-version:
46+
required: true
47+
type: string
48+
gcc-package-suffix:
49+
required: false
50+
type: string
51+
default: ''
4552
apt-gcc-version:
4653
required: true
4754
type: string
@@ -51,11 +58,17 @@ on:
5158
apt-extra-packages:
5259
required: false
5360
type: string
61+
configure-arguments:
62+
required: false
63+
type: string
64+
make-arguments:
65+
required: false
66+
type: string
5467

5568
jobs:
5669
build-linux:
5770
name: build
58-
runs-on: ubuntu-20.04
71+
runs-on: ubuntu-22.04
5972

6073
strategy:
6174
fail-fast: false
@@ -101,8 +114,8 @@ jobs:
101114
fi
102115
sudo apt-get update
103116
sudo apt-get install --only-upgrade apt
104-
sudo apt-get install gcc-${{ inputs.apt-gcc-version }} g++-${{ inputs.apt-gcc-version }} libxrandr-dev${{ steps.arch.outputs.suffix }} libxtst-dev${{ steps.arch.outputs.suffix }} libcups2-dev${{ steps.arch.outputs.suffix }} libasound2-dev${{ steps.arch.outputs.suffix }} ${{ inputs.apt-extra-packages }}
105-
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10
117+
sudo apt-get install gcc-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }}=${{ inputs.apt-gcc-version }} g++-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }}=${{ inputs.apt-gcc-version }} libxrandr-dev${{ steps.arch.outputs.suffix }} libxtst-dev${{ steps.arch.outputs.suffix }} libcups2-dev${{ steps.arch.outputs.suffix }} libasound2-dev${{ steps.arch.outputs.suffix }} ${{ inputs.apt-extra-packages }}
118+
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ inputs.gcc-major-version }} 100 --slave /usr/bin/g++ g++ /usr/bin/g++-${{ inputs.gcc-major-version }}
106119
107120
- name: 'Configure'
108121
run: >
@@ -115,13 +128,16 @@ jobs:
115128
--with-gtest=${{ steps.gtest.outputs.path }}
116129
--enable-jtreg-failure-handler
117130
--with-zlib=system
118-
${{ inputs.extra-conf-options }}
131+
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
132+
echo "Dumping config.log:" &&
133+
cat config.log &&
134+
exit 1)
119135
120136
- name: 'Build'
121137
id: build
122138
uses: ./.github/actions/do-build
123139
with:
124-
make-target: '${{ inputs.make-target }}'
140+
make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
125141
platform: ${{ inputs.platform }}
126142
debug-suffix: '${{ matrix.suffix }}'
127143

.github/workflows/build-macos.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ on:
4545
xcode-toolset-version:
4646
required: true
4747
type: string
48+
configure-arguments:
49+
required: false
50+
type: string
51+
make-arguments:
52+
required: false
53+
type: string
4854

4955
jobs:
5056
build-macos:
@@ -97,13 +103,16 @@ jobs:
97103
--with-gtest=${{ steps.gtest.outputs.path }}
98104
--enable-jtreg-failure-handler
99105
--with-zlib=system
100-
${{ inputs.extra-conf-options }}
106+
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
107+
echo "Dumping config.log:" &&
108+
cat config.log &&
109+
exit 1)
101110
102111
- name: 'Build'
103112
id: build
104113
uses: ./.github/actions/do-build
105114
with:
106-
make-target: '${{ inputs.make-target }}'
115+
make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
107116
platform: ${{ inputs.platform }}
108117
debug-suffix: '${{ matrix.suffix }}'
109118

.github/workflows/build-windows.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ on:
4848
msvc-toolset-architecture:
4949
required: true
5050
type: string
51+
configure-arguments:
52+
required: false
53+
type: string
54+
make-arguments:
55+
required: false
56+
type: string
5157

5258
env:
5359
# These are needed to make the MSYS2 bash work properly
@@ -124,17 +130,21 @@ jobs:
124130
--with-gtest=${{ steps.gtest.outputs.path }}
125131
--enable-jtreg-failure-handler
126132
--with-msvc-toolset-version=${{ inputs.msvc-toolset-version }}
127-
${{ inputs.extra-conf-options }}
133+
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
134+
echo "Dumping config.log:" &&
135+
cat config.log &&
136+
exit 1)
128137
env:
129138
# We need a minimal PATH on Windows
130139
# Set PATH to "", so just GITHUB_PATH is included
131140
PATH: ''
141+
shell: env /usr/bin/bash --login -eo pipefail {0}
132142

133143
- name: 'Build'
134144
id: build
135145
uses: ./.github/actions/do-build
136146
with:
137-
make-target: '${{ inputs.make-target }}'
147+
make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
138148
platform: ${{ inputs.platform }}
139149
debug-suffix: '${{ matrix.suffix }}'
140150

0 commit comments

Comments
 (0)