8295213: Run GHA manually with user-specified make and configure arguments
Reviewed-by: shade
This commit is contained in:
parent
8402260535
commit
760a260fbb
10
.github/workflows/build-cross-compile.yml
vendored
10
.github/workflows/build-cross-compile.yml
vendored
@ -40,6 +40,12 @@ on:
|
|||||||
extra-conf-options:
|
extra-conf-options:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
configure-arguments:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
make-arguments:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-cross-compile:
|
build-cross-compile:
|
||||||
@ -165,7 +171,7 @@ jobs:
|
|||||||
--with-jmod-compress=zip-1
|
--with-jmod-compress=zip-1
|
||||||
CC=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-gcc-${{ inputs.gcc-major-version }}
|
CC=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-gcc-${{ inputs.gcc-major-version }}
|
||||||
CXX=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-g++-${{ inputs.gcc-major-version }}
|
CXX=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-g++-${{ inputs.gcc-major-version }}
|
||||||
${{ inputs.extra-conf-options }} || (
|
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
|
||||||
echo "Dumping config.log:" &&
|
echo "Dumping config.log:" &&
|
||||||
cat config.log &&
|
cat config.log &&
|
||||||
exit 1)
|
exit 1)
|
||||||
@ -174,5 +180,5 @@ jobs:
|
|||||||
id: build
|
id: build
|
||||||
uses: ./.github/actions/do-build
|
uses: ./.github/actions/do-build
|
||||||
with:
|
with:
|
||||||
make-target: 'hotspot'
|
make-target: 'hotspot ${{ inputs.make-arguments }}'
|
||||||
platform: linux-${{ matrix.target-cpu }}
|
platform: linux-${{ matrix.target-cpu }}
|
||||||
|
10
.github/workflows/build-linux.yml
vendored
10
.github/workflows/build-linux.yml
vendored
@ -58,6 +58,12 @@ on:
|
|||||||
apt-extra-packages:
|
apt-extra-packages:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
configure-arguments:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
make-arguments:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
build-linux:
|
||||||
@ -123,7 +129,7 @@ jobs:
|
|||||||
--enable-jtreg-failure-handler
|
--enable-jtreg-failure-handler
|
||||||
--with-zlib=system
|
--with-zlib=system
|
||||||
--with-jmod-compress=zip-1
|
--with-jmod-compress=zip-1
|
||||||
${{ inputs.extra-conf-options }} || (
|
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
|
||||||
echo "Dumping config.log:" &&
|
echo "Dumping config.log:" &&
|
||||||
cat config.log &&
|
cat config.log &&
|
||||||
exit 1)
|
exit 1)
|
||||||
@ -132,7 +138,7 @@ jobs:
|
|||||||
id: build
|
id: build
|
||||||
uses: ./.github/actions/do-build
|
uses: ./.github/actions/do-build
|
||||||
with:
|
with:
|
||||||
make-target: '${{ inputs.make-target }}'
|
make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
|
||||||
platform: ${{ inputs.platform }}
|
platform: ${{ inputs.platform }}
|
||||||
debug-suffix: '${{ matrix.suffix }}'
|
debug-suffix: '${{ matrix.suffix }}'
|
||||||
|
|
||||||
|
10
.github/workflows/build-macos.yml
vendored
10
.github/workflows/build-macos.yml
vendored
@ -45,6 +45,12 @@ on:
|
|||||||
xcode-toolset-version:
|
xcode-toolset-version:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
configure-arguments:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
make-arguments:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-macos:
|
build-macos:
|
||||||
@ -98,7 +104,7 @@ jobs:
|
|||||||
--enable-jtreg-failure-handler
|
--enable-jtreg-failure-handler
|
||||||
--with-zlib=system
|
--with-zlib=system
|
||||||
--with-jmod-compress=zip-1
|
--with-jmod-compress=zip-1
|
||||||
${{ inputs.extra-conf-options }} || (
|
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
|
||||||
echo "Dumping config.log:" &&
|
echo "Dumping config.log:" &&
|
||||||
cat config.log &&
|
cat config.log &&
|
||||||
exit 1)
|
exit 1)
|
||||||
@ -107,7 +113,7 @@ jobs:
|
|||||||
id: build
|
id: build
|
||||||
uses: ./.github/actions/do-build
|
uses: ./.github/actions/do-build
|
||||||
with:
|
with:
|
||||||
make-target: '${{ inputs.make-target }}'
|
make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
|
||||||
platform: ${{ inputs.platform }}
|
platform: ${{ inputs.platform }}
|
||||||
debug-suffix: '${{ matrix.suffix }}'
|
debug-suffix: '${{ matrix.suffix }}'
|
||||||
|
|
||||||
|
10
.github/workflows/build-windows.yml
vendored
10
.github/workflows/build-windows.yml
vendored
@ -48,6 +48,12 @@ on:
|
|||||||
msvc-toolset-architecture:
|
msvc-toolset-architecture:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
configure-arguments:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
make-arguments:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# These are needed to make the MSYS2 bash work properly
|
# These are needed to make the MSYS2 bash work properly
|
||||||
@ -111,7 +117,7 @@ jobs:
|
|||||||
--enable-jtreg-failure-handler
|
--enable-jtreg-failure-handler
|
||||||
--with-msvc-toolset-version=${{ inputs.msvc-toolset-version }}
|
--with-msvc-toolset-version=${{ inputs.msvc-toolset-version }}
|
||||||
--with-jmod-compress=zip-1
|
--with-jmod-compress=zip-1
|
||||||
${{ inputs.extra-conf-options }} || (
|
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
|
||||||
echo "Dumping config.log:" &&
|
echo "Dumping config.log:" &&
|
||||||
cat config.log &&
|
cat config.log &&
|
||||||
exit 1)
|
exit 1)
|
||||||
@ -124,7 +130,7 @@ jobs:
|
|||||||
id: build
|
id: build
|
||||||
uses: ./.github/actions/do-build
|
uses: ./.github/actions/do-build
|
||||||
with:
|
with:
|
||||||
make-target: '${{ inputs.make-target }}'
|
make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
|
||||||
platform: ${{ inputs.platform }}
|
platform: ${{ inputs.platform }}
|
||||||
debug-suffix: '${{ matrix.suffix }}'
|
debug-suffix: '${{ matrix.suffix }}'
|
||||||
|
|
||||||
|
28
.github/workflows/main.yml
vendored
28
.github/workflows/main.yml
vendored
@ -36,6 +36,12 @@ on:
|
|||||||
description: 'Platform(s) to execute on (comma separated, e.g. "linux-x64, macos, aarch64")'
|
description: 'Platform(s) to execute on (comma separated, e.g. "linux-x64, macos, aarch64")'
|
||||||
required: true
|
required: true
|
||||||
default: 'linux-x64, linux-x86, linux-x64-variants, linux-cross-compile, macos-x64, macos-aarch64, windows-x64, windows-aarch64'
|
default: 'linux-x64, linux-x86, linux-x64-variants, linux-cross-compile, macos-x64, macos-aarch64, windows-x64, windows-aarch64'
|
||||||
|
configure-arguments:
|
||||||
|
description: 'Additional configure arguments'
|
||||||
|
required: false
|
||||||
|
make-arguments:
|
||||||
|
description: 'Additional make arguments'
|
||||||
|
required: false
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
@ -125,6 +131,8 @@ jobs:
|
|||||||
platform: linux-x64
|
platform: linux-x64
|
||||||
gcc-major-version: '10'
|
gcc-major-version: '10'
|
||||||
apt-gcc-version: '10.3.0-15ubuntu1'
|
apt-gcc-version: '10.3.0-15ubuntu1'
|
||||||
|
configure-arguments: ${{ github.event.inputs.configure-arguments }}
|
||||||
|
make-arguments: ${{ github.event.inputs.make-arguments }}
|
||||||
# The linux-x64 jdk bundle is used as buildjdk for the cross-compile job
|
# The linux-x64 jdk bundle is used as buildjdk for the cross-compile job
|
||||||
if: needs.select.outputs.linux-x64 == 'true' || needs.select.outputs.linux-cross-compile == 'true'
|
if: needs.select.outputs.linux-x64 == 'true' || needs.select.outputs.linux-cross-compile == 'true'
|
||||||
|
|
||||||
@ -142,6 +150,8 @@ jobs:
|
|||||||
# install their dependencies manually.
|
# install their dependencies manually.
|
||||||
apt-extra-packages: 'libfreetype6-dev:i386 libtiff-dev:i386 libcupsimage2-dev:i386 libc6-i386'
|
apt-extra-packages: 'libfreetype6-dev:i386 libtiff-dev:i386 libcupsimage2-dev:i386 libc6-i386'
|
||||||
extra-conf-options: '--with-target-bits=32'
|
extra-conf-options: '--with-target-bits=32'
|
||||||
|
configure-arguments: ${{ github.event.inputs.configure-arguments }}
|
||||||
|
make-arguments: ${{ github.event.inputs.make-arguments }}
|
||||||
if: needs.select.outputs.linux-x86 == 'true'
|
if: needs.select.outputs.linux-x86 == 'true'
|
||||||
|
|
||||||
build-linux-x64-hs-nopch:
|
build-linux-x64-hs-nopch:
|
||||||
@ -155,6 +165,8 @@ jobs:
|
|||||||
gcc-major-version: '10'
|
gcc-major-version: '10'
|
||||||
apt-gcc-version: '10.3.0-15ubuntu1'
|
apt-gcc-version: '10.3.0-15ubuntu1'
|
||||||
extra-conf-options: '--disable-precompiled-headers'
|
extra-conf-options: '--disable-precompiled-headers'
|
||||||
|
configure-arguments: ${{ github.event.inputs.configure-arguments }}
|
||||||
|
make-arguments: ${{ github.event.inputs.make-arguments }}
|
||||||
if: needs.select.outputs.linux-x64-variants == 'true'
|
if: needs.select.outputs.linux-x64-variants == 'true'
|
||||||
|
|
||||||
build-linux-x64-hs-zero:
|
build-linux-x64-hs-zero:
|
||||||
@ -168,6 +180,8 @@ jobs:
|
|||||||
gcc-major-version: '10'
|
gcc-major-version: '10'
|
||||||
apt-gcc-version: '10.3.0-15ubuntu1'
|
apt-gcc-version: '10.3.0-15ubuntu1'
|
||||||
extra-conf-options: '--with-jvm-variants=zero --disable-precompiled-headers'
|
extra-conf-options: '--with-jvm-variants=zero --disable-precompiled-headers'
|
||||||
|
configure-arguments: ${{ github.event.inputs.configure-arguments }}
|
||||||
|
make-arguments: ${{ github.event.inputs.make-arguments }}
|
||||||
if: needs.select.outputs.linux-x64-variants == 'true'
|
if: needs.select.outputs.linux-x64-variants == 'true'
|
||||||
|
|
||||||
build-linux-x64-hs-minimal:
|
build-linux-x64-hs-minimal:
|
||||||
@ -181,6 +195,8 @@ jobs:
|
|||||||
gcc-major-version: '10'
|
gcc-major-version: '10'
|
||||||
apt-gcc-version: '10.3.0-15ubuntu1'
|
apt-gcc-version: '10.3.0-15ubuntu1'
|
||||||
extra-conf-options: '--with-jvm-variants=minimal --disable-precompiled-headers'
|
extra-conf-options: '--with-jvm-variants=minimal --disable-precompiled-headers'
|
||||||
|
configure-arguments: ${{ github.event.inputs.configure-arguments }}
|
||||||
|
make-arguments: ${{ github.event.inputs.make-arguments }}
|
||||||
if: needs.select.outputs.linux-x64-variants == 'true'
|
if: needs.select.outputs.linux-x64-variants == 'true'
|
||||||
|
|
||||||
build-linux-x64-hs-optimized:
|
build-linux-x64-hs-optimized:
|
||||||
@ -195,6 +211,8 @@ jobs:
|
|||||||
gcc-major-version: '10'
|
gcc-major-version: '10'
|
||||||
apt-gcc-version: '10.3.0-15ubuntu1'
|
apt-gcc-version: '10.3.0-15ubuntu1'
|
||||||
extra-conf-options: '--with-debug-level=optimized --disable-precompiled-headers'
|
extra-conf-options: '--with-debug-level=optimized --disable-precompiled-headers'
|
||||||
|
configure-arguments: ${{ github.event.inputs.configure-arguments }}
|
||||||
|
make-arguments: ${{ github.event.inputs.make-arguments }}
|
||||||
if: needs.select.outputs.linux-x64-variants == 'true'
|
if: needs.select.outputs.linux-x64-variants == 'true'
|
||||||
|
|
||||||
build-linux-cross-compile:
|
build-linux-cross-compile:
|
||||||
@ -207,6 +225,8 @@ jobs:
|
|||||||
gcc-major-version: '10'
|
gcc-major-version: '10'
|
||||||
apt-gcc-version: '10.3.0-15ubuntu1'
|
apt-gcc-version: '10.3.0-15ubuntu1'
|
||||||
apt-gcc-cross-version: '10.3.0-8ubuntu1cross1'
|
apt-gcc-cross-version: '10.3.0-8ubuntu1cross1'
|
||||||
|
configure-arguments: ${{ github.event.inputs.configure-arguments }}
|
||||||
|
make-arguments: ${{ github.event.inputs.make-arguments }}
|
||||||
if: needs.select.outputs.linux-cross-compile == 'true'
|
if: needs.select.outputs.linux-cross-compile == 'true'
|
||||||
|
|
||||||
build-macos-x64:
|
build-macos-x64:
|
||||||
@ -216,6 +236,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
platform: macos-x64
|
platform: macos-x64
|
||||||
xcode-toolset-version: '11.7'
|
xcode-toolset-version: '11.7'
|
||||||
|
configure-arguments: ${{ github.event.inputs.configure-arguments }}
|
||||||
|
make-arguments: ${{ github.event.inputs.make-arguments }}
|
||||||
if: needs.select.outputs.macos-x64 == 'true'
|
if: needs.select.outputs.macos-x64 == 'true'
|
||||||
|
|
||||||
build-macos-aarch64:
|
build-macos-aarch64:
|
||||||
@ -226,6 +248,8 @@ jobs:
|
|||||||
platform: macos-aarch64
|
platform: macos-aarch64
|
||||||
xcode-toolset-version: '12.4'
|
xcode-toolset-version: '12.4'
|
||||||
extra-conf-options: '--openjdk-target=aarch64-apple-darwin'
|
extra-conf-options: '--openjdk-target=aarch64-apple-darwin'
|
||||||
|
configure-arguments: ${{ github.event.inputs.configure-arguments }}
|
||||||
|
make-arguments: ${{ github.event.inputs.make-arguments }}
|
||||||
if: needs.select.outputs.macos-aarch64 == 'true'
|
if: needs.select.outputs.macos-aarch64 == 'true'
|
||||||
|
|
||||||
build-windows-x64:
|
build-windows-x64:
|
||||||
@ -236,6 +260,8 @@ jobs:
|
|||||||
platform: windows-x64
|
platform: windows-x64
|
||||||
msvc-toolset-version: '14.29'
|
msvc-toolset-version: '14.29'
|
||||||
msvc-toolset-architecture: 'x86.x64'
|
msvc-toolset-architecture: 'x86.x64'
|
||||||
|
configure-arguments: ${{ github.event.inputs.configure-arguments }}
|
||||||
|
make-arguments: ${{ github.event.inputs.make-arguments }}
|
||||||
if: needs.select.outputs.windows-x64 == 'true'
|
if: needs.select.outputs.windows-x64 == 'true'
|
||||||
|
|
||||||
build-windows-aarch64:
|
build-windows-aarch64:
|
||||||
@ -248,6 +274,8 @@ jobs:
|
|||||||
msvc-toolset-architecture: 'arm64'
|
msvc-toolset-architecture: 'arm64'
|
||||||
make-target: 'hotspot'
|
make-target: 'hotspot'
|
||||||
extra-conf-options: '--openjdk-target=aarch64-unknown-cygwin'
|
extra-conf-options: '--openjdk-target=aarch64-unknown-cygwin'
|
||||||
|
configure-arguments: ${{ github.event.inputs.configure-arguments }}
|
||||||
|
make-arguments: ${{ github.event.inputs.make-arguments }}
|
||||||
if: needs.select.outputs.windows-aarch64 == 'true'
|
if: needs.select.outputs.windows-aarch64 == 'true'
|
||||||
|
|
||||||
###
|
###
|
||||||
|
Loading…
Reference in New Issue
Block a user