diff --git a/.github/workflows/build-cross-compile.yml b/.github/workflows/build-cross-compile.yml index 5fba2cc3829..37e2ce8fe41 100644 --- a/.github/workflows/build-cross-compile.yml +++ b/.github/workflows/build-cross-compile.yml @@ -37,6 +37,9 @@ on: apt-gcc-cross-version: required: true type: string + extra-conf-options: + required: false + type: string jobs: build-cross-compile: @@ -142,6 +145,10 @@ jobs: --with-build-jdk=${{ steps.buildjdk.outputs.jdk-path }} 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 }} + ${{ inputs.extra-conf-options }} || ( + echo "Dumping config.log:" && + cat config.log && + exit 1) - name: 'Build' id: build diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 96edc343e0b..1f62522b846 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -122,7 +122,10 @@ jobs: --with-gtest=${{ steps.gtest.outputs.path }} --enable-jtreg-failure-handler --with-zlib=system - ${{ inputs.extra-conf-options }} + ${{ inputs.extra-conf-options }} || ( + echo "Dumping config.log:" && + cat config.log && + exit 1) - name: 'Build' id: build diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index a19dcc3140d..a5690441823 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -97,7 +97,10 @@ jobs: --with-gtest=${{ steps.gtest.outputs.path }} --enable-jtreg-failure-handler --with-zlib=system - ${{ inputs.extra-conf-options }} + ${{ inputs.extra-conf-options }} || ( + echo "Dumping config.log:" && + cat config.log && + exit 1) - name: 'Build' id: build diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 86fdba8670f..d010fb8fa8a 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -110,7 +110,10 @@ jobs: --with-gtest=${{ steps.gtest.outputs.path }} --enable-jtreg-failure-handler --with-msvc-toolset-version=${{ inputs.msvc-toolset-version }} - ${{ inputs.extra-conf-options }} + ${{ inputs.extra-conf-options }} || ( + echo "Dumping config.log:" && + cat config.log && + exit 1) env: # We need a minimal PATH on Windows # Set PATH to "", so just GITHUB_PATH is included