From c84a5b2857aacff54ad0bf31d4bdd3747451d92f Mon Sep 17 00:00:00 2001 From: Zdenek Zambersky Date: Mon, 12 Dec 2022 09:42:32 +0000 Subject: [PATCH] 8298307: Enable hotspot/tier1 for 32-bit builds in GHA for 8u Reviewed-by: sgehwolf --- .github/workflows/submit.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/submit.yml b/.github/workflows/submit.yml index 87e49481f50..32775ca71db 100644 --- a/.github/workflows/submit.yml +++ b/.github/workflows/submit.yml @@ -558,14 +558,14 @@ jobs: test: - jdk/tier1 - langtools/tier1 -# - hotspot/tier1 + - hotspot/tier1 include: - test: jdk/tier1 suites: jdk_tier1 - test: langtools/tier1 suites: langtools_tier1 -# - test: hotspot/tier1 -# suites: hotspot_tier1 + - test: hotspot/tier1 + suites: hotspot_tier1 # Reduced 32-bit build uses the same boot JDK as 64-bit build env: @@ -609,13 +609,21 @@ jobs: - name: Install dependencies run: | sudo apt-get update - sudo apt-get install openjdk-8-jdk + sudo apt-get install openjdk-8-jdk gcc-9-multilib g++-9-multilib - name: Unpack jdk run: | mkdir -p "${HOME}/jdk-linux-x86${{ matrix.artifact }}/jdk-${{ env.JDK_VERSION }}-internal+0_linux-x86_bin${{ matrix.artifact }}" tar -xf "${HOME}/jdk-linux-x86${{ matrix.artifact }}/jdk-${{ env.JDK_VERSION }}-internal+0_linux-x86_bin${{ matrix.artifact }}.tar.gz" -C "${HOME}/jdk-linux-x86${{ matrix.artifact }}/jdk-${{ env.JDK_VERSION }}-internal+0_linux-x86_bin${{ matrix.artifact }}" + - name: Build multilib docker image + if: matrix.test == 'hotspot/tier1' + run: > + printf '%s\n%s\n' + 'FROM ubuntu:latest' + 'RUN dpkg --add-architecture i386 && apt-get update && apt-get -y install libc6:i386' + | docker build -t 'ubuntu-multilib:latest' - + - name: Run tests run: > chmod +x "${HOME}/jtreg/bin/jtreg" && @@ -624,7 +632,7 @@ jobs: PRODUCT_HOME="${HOME}/jdk-linux-x86${{ matrix.artifact }}/jdk-${{ env.JDK_VERSION }}-internal+0_linux-x86_bin${{ matrix.artifact }}/j2sdk-image" JT_HOME="${HOME}/jtreg" ALT_OUTPUTDIR="${GITHUB_WORKSPACE}/test-results" - JAVA_ARGS="-Djdk.test.docker.image.name=ubuntu -Djdk.test.docker.image.version=latest" + JAVA_ARGS="-Djdk.test.docker.image.name=ubuntu-multilib -Djdk.test.docker.image.version=latest" JTREG_TIMEOUT_FACTOR="4" make "${{ matrix.suites }}" @@ -1177,14 +1185,14 @@ jobs: test: - jdk/tier1 - langtools/tier1 -# - hotspot/tier1 + - hotspot/tier1 include: - test: jdk/tier1 suites: jdk_tier1 - test: langtools/tier1 suites: langtools_tier1 -# - test: hotspot/tier1 -# suites: hotspot_tier1 + - test: hotspot/tier1 + suites: hotspot_tier1 env: JDK_VERSION: "${{ fromJson(needs.prerequisites.outputs.dependencies).JDK_MAJOR_VERSION }}.${{ fromJson(needs.prerequisites.outputs.dependencies).JDK_MINOR_VERSION }}.${{ fromJson(needs.prerequisites.outputs.dependencies).JDK_MICRO_VERSION }}"