|
16 | 16 | DB_PASSWORD: hibernate_orm_test
|
17 | 17 | DB_USER: hibernate_orm_test
|
18 | 18 | GRAALVM_HOME: ${{ github.workspace }}/graalvm
|
19 |
| - LABSJDK_HOME: ${{ github.workspace }}/jdk |
| 19 | + BOOTSTRAP_JAVA_HOME: ${{ github.workspace }}/jdk |
20 | 20 | LANG: en_US.UTF-8 # Workaround testsuite locale issue
|
21 | 21 | MX_GIT_CACHE: refcache
|
22 | 22 | MX_PATH: ${{ github.workspace }}/mx
|
23 | 23 | MX_PYTHON: python3.8
|
24 | 24 | NATIVE_TEST_MAVEN_ARGS: "-Dtest-containers -Dstart-containers -Dquarkus.native.native-image-xmx=5g -Dnative -Dnative.surefire.skip -Dformat.skip -Dno-descriptor-tests install -DskipDocs -Dquarkus.native.container-build=false"
|
25 | 25 | QUARKUS_PATH: ${{ github.workspace }}/quarkus
|
| 26 | + JDK_VERSION: "21" |
26 | 27 |
|
27 | 28 | permissions: {}
|
28 | 29 | jobs:
|
@@ -69,16 +70,20 @@ jobs:
|
69 | 70 | key: ${{ runner.os }}-mx-${{ hashFiles('**/suite.py') }}
|
70 | 71 | restore-keys: |
|
71 | 72 | ${{ runner.os }}-mx-
|
72 |
| - - name: Fetch LabsJDK |
| 73 | + - name: Get OpenJDK with static libs |
73 | 74 | run: |
|
74 |
| - mkdir jdk-dl |
75 |
| - ${MX_PATH}/mx --java-home= fetch-jdk --jdk-id labsjdk-ce-21 --to jdk-dl --alias ${LABSJDK_HOME} |
| 75 | + curl -sL https://api.adoptium.net/v3/binary/latest/${JDK_VERSION}/ea/linux/x64/jdk/hotspot/normal/eclipse -o jdk.tar.gz |
| 76 | + curl -sL https://api.adoptium.net/v3/binary/latest/${JDK_VERSION}/ea/linux/x64/staticlibs/hotspot/normal/eclipse -o jdk-static-libs.tar.gz |
| 77 | + mkdir -p ${BOOTSTRAP_JAVA_HOME} |
| 78 | + tar xf jdk.tar.gz -C ${BOOTSTRAP_JAVA_HOME} --strip-components=1 |
| 79 | + tar xf jdk-static-libs.tar.gz -C ${BOOTSTRAP_JAVA_HOME} --strip-components=1 |
| 80 | + echo ${BOOTSTRAP_JAVA_HOME} |
| 81 | + ${BOOTSTRAP_JAVA_HOME}/bin/java --version |
76 | 82 | - name: Build graalvm native-image
|
77 | 83 | run: |
|
78 |
| - export JAVA_HOME=${LABSJDK_HOME} |
79 | 84 | cd substratevm
|
80 |
| - ${MX_PATH}/mx --native=native-image,lib:jvmcicompiler --components="Native Image,LibGraal" build |
81 |
| - mv $(${MX_PATH}/mx --native=native-image,lib:jvmcicompiler --components="Native Image,LibGraal" graalvm-home) ${GRAALVM_HOME} |
| 85 | + ${MX_PATH}/mx --java-home=${BOOTSTRAP_JAVA_HOME} --native=native-image,lib:jvmcicompiler --components="Native Image,LibGraal" build |
| 86 | + mv $(${MX_PATH}/mx --java-home=${BOOTSTRAP_JAVA_HOME} --native=native-image,lib:jvmcicompiler --components="Native Image,LibGraal" graalvm-home) ${GRAALVM_HOME} |
82 | 87 | ${GRAALVM_HOME}/bin/native-image --version
|
83 | 88 | - name: Tar GraalVM
|
84 | 89 | shell: bash
|
|
88 | 93 | with:
|
89 | 94 | name: graalvm
|
90 | 95 | path: graalvm.tgz
|
| 96 | + - name: Use JDK 17 for Quarkus build |
| 97 | + uses: actions/setup-java@v4 |
| 98 | + with: |
| 99 | + distribution: temurin |
| 100 | + java-version: 17 |
91 | 101 | - name: Build Quarkus
|
92 | 102 | run: |
|
93 | 103 | cd ${QUARKUS_PATH}
|
@@ -149,11 +159,11 @@ jobs:
|
149 | 159 | if: startsWith(matrix.os-name, 'ubuntu')
|
150 | 160 | shell: bash
|
151 | 161 | run: tar -xzf maven-repo.tgz -C ~
|
152 |
| - - uses: graalvm/setup-graalvm@v1 |
| 162 | + - name: Use JDK 17 for Quarkus build |
| 163 | + uses: actions/setup-java@v4 |
153 | 164 | with:
|
154 |
| - version: 'latest' |
155 |
| - java-version: '17' |
156 |
| - github-token: ${{ secrets.GITHUB_TOKEN }} |
| 165 | + distribution: temurin |
| 166 | + java-version: 17 |
157 | 167 | - name: Build with Maven
|
158 | 168 | if: startsWith(matrix.os-name, 'ubuntu')
|
159 | 169 | env:
|
|
0 commit comments