Skip to content

Commit adc3f3f

Browse files
authored
Merge pull request #789 from jerboaa/mandrel-23.1-upstream-merge-2024-08-27
Mandrel 23.1 upstream merge 2024-09-02
2 parents 362f469 + 3aac302 commit adc3f3f

File tree

2 files changed

+29
-14
lines changed

2 files changed

+29
-14
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,16 @@ jobs:
142142
path: ~/.mx
143143
key: ${{ runner.os }}-mx-${{ hashFiles('**/suite.py') }}
144144
restore-keys: ${{ runner.os }}-mx-
145-
- name: Fetch LabsJDK
145+
- name: Get OpenJDK with static libs
146146
env: ${{ matrix.env }}
147147
run: |
148-
mkdir jdk-dl
149-
${MX_PATH}/mx --java-home= fetch-jdk --jdk-id labsjdk-ce-${JDK_VERSION} --to jdk-dl --alias ${JAVA_HOME}
148+
curl -sL https://api.adoptium.net/v3/binary/latest/${JDK_VERSION}/ea/linux/x64/jdk/hotspot/normal/eclipse -o jdk.tar.gz
149+
curl -sL https://api.adoptium.net/v3/binary/latest/${JDK_VERSION}/ea/linux/x64/staticlibs/hotspot/normal/eclipse -o jdk-static-libs.tar.gz
150+
mkdir -p ${JAVA_HOME}
151+
tar xf jdk.tar.gz -C ${JAVA_HOME} --strip-components=1
152+
tar xf jdk-static-libs.tar.gz -C ${JAVA_HOME} --strip-components=1
153+
echo ${JAVA_HOME}
154+
${JAVA_HOME}/bin/java --version
150155
- name: Update dependency cache
151156
if: ${{ env.MX_RUNS_DEBUG == 'true' || env.MX_RUNS_STYLE == 'true' }}
152157
run: sudo apt update

.github/workflows/quarkus.yml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ env:
1616
DB_PASSWORD: hibernate_orm_test
1717
DB_USER: hibernate_orm_test
1818
GRAALVM_HOME: ${{ github.workspace }}/graalvm
19-
LABSJDK_HOME: ${{ github.workspace }}/jdk
19+
BOOTSTRAP_JAVA_HOME: ${{ github.workspace }}/jdk
2020
LANG: en_US.UTF-8 # Workaround testsuite locale issue
2121
MX_GIT_CACHE: refcache
2222
MX_PATH: ${{ github.workspace }}/mx
2323
MX_PYTHON: python3.8
2424
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"
2525
QUARKUS_PATH: ${{ github.workspace }}/quarkus
26+
JDK_VERSION: "21"
2627

2728
permissions: {}
2829
jobs:
@@ -69,16 +70,20 @@ jobs:
6970
key: ${{ runner.os }}-mx-${{ hashFiles('**/suite.py') }}
7071
restore-keys: |
7172
${{ runner.os }}-mx-
72-
- name: Fetch LabsJDK
73+
- name: Get OpenJDK with static libs
7374
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
7682
- name: Build graalvm native-image
7783
run: |
78-
export JAVA_HOME=${LABSJDK_HOME}
7984
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}
8287
${GRAALVM_HOME}/bin/native-image --version
8388
- name: Tar GraalVM
8489
shell: bash
@@ -88,6 +93,11 @@ jobs:
8893
with:
8994
name: graalvm
9095
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
91101
- name: Build Quarkus
92102
run: |
93103
cd ${QUARKUS_PATH}
@@ -149,11 +159,11 @@ jobs:
149159
if: startsWith(matrix.os-name, 'ubuntu')
150160
shell: bash
151161
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
153164
with:
154-
version: 'latest'
155-
java-version: '17'
156-
github-token: ${{ secrets.GITHUB_TOKEN }}
165+
distribution: temurin
166+
java-version: 17
157167
- name: Build with Maven
158168
if: startsWith(matrix.os-name, 'ubuntu')
159169
env:

0 commit comments

Comments
 (0)