8283929: GHA: Add RISC-V build config
Reviewed-by: ihse, shade
This commit is contained in:
parent
98d85e6f59
commit
85d4b49151
31
.github/workflows/build-cross-compile.yml
vendored
31
.github/workflows/build-cross-compile.yml
vendored
@ -54,20 +54,35 @@ jobs:
|
|||||||
- arm
|
- arm
|
||||||
- s390x
|
- s390x
|
||||||
- ppc64le
|
- ppc64le
|
||||||
|
- riscv64
|
||||||
include:
|
include:
|
||||||
- target-cpu: aarch64
|
- target-cpu: aarch64
|
||||||
debian-arch: arm64
|
|
||||||
gnu-arch: aarch64
|
gnu-arch: aarch64
|
||||||
|
debian-arch: arm64
|
||||||
|
debian-repository: https://httpredir.debian.org/debian/
|
||||||
|
debian-version: bullseye
|
||||||
- target-cpu: arm
|
- target-cpu: arm
|
||||||
debian-arch: armhf
|
|
||||||
gnu-arch: arm
|
gnu-arch: arm
|
||||||
|
debian-arch: armhf
|
||||||
|
debian-repository: https://httpredir.debian.org/debian/
|
||||||
|
debian-version: bullseye
|
||||||
gnu-abi: eabihf
|
gnu-abi: eabihf
|
||||||
- target-cpu: s390x
|
- target-cpu: s390x
|
||||||
debian-arch: s390x
|
|
||||||
gnu-arch: s390x
|
gnu-arch: s390x
|
||||||
|
debian-arch: s390x
|
||||||
|
debian-repository: https://httpredir.debian.org/debian/
|
||||||
|
debian-version: bullseye
|
||||||
- target-cpu: ppc64le
|
- target-cpu: ppc64le
|
||||||
debian-arch: ppc64el
|
|
||||||
gnu-arch: powerpc64le
|
gnu-arch: powerpc64le
|
||||||
|
debian-arch: ppc64el
|
||||||
|
debian-repository: https://httpredir.debian.org/debian/
|
||||||
|
debian-version: bullseye
|
||||||
|
- target-cpu: riscv64
|
||||||
|
gnu-arch: riscv64
|
||||||
|
debian-arch: riscv64
|
||||||
|
debian-repository: https://deb.debian.org/debian-ports
|
||||||
|
debian-keyring: /usr/share/keyrings/debian-ports-archive-keyring.gpg
|
||||||
|
debian-version: sid
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 'Checkout the JDK source'
|
- name: 'Checkout the JDK source'
|
||||||
@ -97,7 +112,8 @@ jobs:
|
|||||||
g++-${{ inputs.gcc-major-version }}=${{ inputs.apt-gcc-version }} \
|
g++-${{ inputs.gcc-major-version }}=${{ inputs.apt-gcc-version }} \
|
||||||
gcc-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-cross-version }} \
|
gcc-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-cross-version }} \
|
||||||
g++-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-cross-version }} \
|
g++-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}=${{ inputs.apt-gcc-cross-version }} \
|
||||||
libxrandr-dev libxtst-dev libcups2-dev libasound2-dev
|
libxrandr-dev libxtst-dev libcups2-dev libasound2-dev \
|
||||||
|
debian-ports-archive-keyring
|
||||||
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 }}
|
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 }}
|
||||||
|
|
||||||
- name: 'Check cache for sysroot'
|
- name: 'Check cache for sysroot'
|
||||||
@ -118,9 +134,10 @@ jobs:
|
|||||||
--verbose
|
--verbose
|
||||||
--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
|
--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
|
||||||
--resolve-deps
|
--resolve-deps
|
||||||
bullseye
|
$(test -n "${{ matrix.debian-keyring }}" && echo "--keyring=${{ matrix.debian-keyring }}")
|
||||||
|
${{ matrix.debian-version }}
|
||||||
sysroot
|
sysroot
|
||||||
https://httpredir.debian.org/debian/
|
${{ matrix.debian-repository }}
|
||||||
if: steps.get-cached-sysroot.outputs.cache-hit != 'true'
|
if: steps.get-cached-sysroot.outputs.cache-hit != 'true'
|
||||||
|
|
||||||
- name: 'Prepare sysroot'
|
- name: 'Prepare sysroot'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user