Skip to content

Commit 170f23b

Browse files
committedSep 2, 2022
Merge with jdk-20+13
2 parents 42a192f + 0d51f63 commit 170f23b

File tree

448 files changed

+7055
-8678
lines changed

Some content is hidden

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

448 files changed

+7055
-8678
lines changed
 

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

+8-11
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,14 @@ 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:
36-
required: false
35+
required: true
3736
type: string
38-
default: '10.3.0-1ubuntu1~20.04'
39-
apt-gcc-cross-suffix:
40-
required: false
37+
apt-gcc-cross-version:
38+
required: true
4139
type: string
42-
default: 'cross1'
4340

4441
jobs:
4542
build-cross-compile:
@@ -95,8 +92,8 @@ jobs:
9592
sudo apt-get install \
9693
gcc-${{ inputs.gcc-major-version }}=${{ inputs.apt-gcc-version }} \
9794
g++-${{ inputs.gcc-major-version }}=${{ inputs.apt-gcc-version }} \
98-
gcc-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-version }}${{ inputs.apt-gcc-cross-suffix }} \
99-
g++-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-version }}${{ inputs.apt-gcc-cross-suffix }} \
95+
gcc-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-cross-version }} \
96+
g++-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-cross-version }} \
10097
libxrandr-dev libxtst-dev libcups2-dev libasound2-dev
10198
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 }}
10299
@@ -143,8 +140,8 @@ jobs:
143140
--openjdk-target=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}
144141
--with-sysroot=sysroot
145142
--with-build-jdk=${{ steps.buildjdk.outputs.jdk-path }}
146-
CC=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-gcc-10
147-
CXX=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-g++-10
143+
CC=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-gcc-${{ inputs.gcc-major-version }}
144+
CXX=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-g++-${{ inputs.gcc-major-version }}
148145
149146
- name: 'Build'
150147
id: build

‎.github/workflows/build-linux.yml

+9-2
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
@@ -101,8 +108,8 @@ jobs:
101108
fi
102109
sudo apt-get update
103110
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
111+
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 }}
112+
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 }}
106113
107114
- name: 'Configure'
108115
run: >

0 commit comments

Comments
 (0)
Please sign in to comment.