Skip to content

Commit

Permalink
[CI] Update job to use JDK 25 and the new artifact name
Browse files Browse the repository at this point in the history
  • Loading branch information
zakkak authored and Karm committed Dec 20, 2024
1 parent 6f17dd6 commit 9dffc0c
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions .github/workflows/buildJDK.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ jobs:
key: ${{ runner.os }}-mx-${{ hashFiles('**/suite.py') }}
restore-keys: |
${{ runner.os }}-${{ matrix.quarkus-name }}-maven-
- name: Get latest OpenJDK 24 with static libs
- name: Get latest OpenJDK 25 with static libs
run: |
curl -sL https://api.adoptium.net/v3/binary/latest/24/ea/linux/x64/jdk/hotspot/normal/eclipse -o jdk.tar.gz
curl -sL https://api.adoptium.net/v3/binary/latest/24/ea/linux/x64/staticlibs/hotspot/normal/eclipse -o jdk-static-libs.tar.gz
curl -sL https://api.adoptium.net/v3/binary/latest/25/ea/linux/x64/jdk/hotspot/normal/eclipse -o jdk.tar.gz
curl -sL https://api.adoptium.net/v3/binary/latest/25/ea/linux/x64/staticlibs/hotspot/normal/eclipse -o jdk-static-libs.tar.gz
mkdir -p ${JAVA_HOME}
tar xf jdk.tar.gz -C ${JAVA_HOME} --strip-components=1
tar xf jdk-static-libs.tar.gz -C ${JAVA_HOME} --strip-components=1
Expand All @@ -84,12 +84,12 @@ jobs:
run: |
${JAVA_HOME}/bin/java -ea build.java --mx-home ${MX_HOME} --mandrel-repo ${MANDREL_REPO} --mandrel-version "${MANDREL_VERSION}" --archive-suffix tar.gz
export MANDREL_VERSION_UNTIL_SPACE="$( echo ${MANDREL_VERSION} | sed -e 's/\([^ ]*\).*/\1/;t' )"
export ARCHIVE_NAME="mandrel-java24-linux-amd64-${MANDREL_VERSION_UNTIL_SPACE}.tar.gz"
mv ${ARCHIVE_NAME} mandrel-java24-linux-amd64.tar.gz
export ARCHIVE_NAME="mandrel-java25-linux-amd64-${MANDREL_VERSION_UNTIL_SPACE}.tar.gz"
mv ${ARCHIVE_NAME} mandrel-java25-linux-amd64.tar.gz
- name: Smoke tests
run: |
export MANDREL_VERSION_UNTIL_SPACE="$( echo ${MANDREL_VERSION} | sed -e 's/\([^ ]*\).*/\1/;t' )"
export MANDREL_HOME=${PWD}/mandrel-java24-${MANDREL_VERSION_UNTIL_SPACE}
export MANDREL_HOME=${PWD}/mandrel-java25-${MANDREL_VERSION_UNTIL_SPACE}
${MANDREL_HOME}/bin/native-image --version
${MANDREL_HOME}/bin/native-image --version | grep "${MANDREL_VERSION}"
echo "
Expand Down Expand Up @@ -117,27 +117,27 @@ jobs:
System.out.println(\"Implicitly declared classes.\");
}
" > ImplicitClass.java
${MANDREL_HOME}/bin/javac --enable-preview --release 24 ImplicitClass.java
${MANDREL_HOME}/bin/javac --enable-preview --release 25 ImplicitClass.java
${MANDREL_HOME}/bin/java --enable-preview ImplicitClass | tee java.txt
${MANDREL_HOME}/bin/native-image --enable-preview ImplicitClass
./implicitclass | tee native.txt
diff java.txt native.txt
- name: Upload Mandrel build
uses: actions/upload-artifact@v3
with:
name: mandrel-java24-linux-amd64-test-build
path: mandrel-java24-linux-amd64.tar.gz
name: mandrel-java25-linux-amd64-test-build
path: mandrel-java25-linux-amd64.tar.gz
- name: Build Mandrel JDK with tarxz suffix
run: |
${JAVA_HOME}/bin/java -ea build.java --mx-home ${MX_HOME} --mandrel-repo ${MANDREL_REPO} --mandrel-version "${MANDREL_VERSION}" --archive-suffix tarxz --skip-clean --skip-java --skip-native
export MANDREL_VERSION_UNTIL_SPACE="$( echo ${MANDREL_VERSION} | sed -e 's/\([^ ]*\).*/\1/;t' )"
export ARCHIVE_NAME="mandrel-java24-linux-amd64-${MANDREL_VERSION_UNTIL_SPACE}.tarxz"
mv ${ARCHIVE_NAME} mandrel-java24-linux-amd64.tarxz
export ARCHIVE_NAME="mandrel-java25-linux-amd64-${MANDREL_VERSION_UNTIL_SPACE}.tarxz"
mv ${ARCHIVE_NAME} mandrel-java25-linux-amd64.tarxz
- name: Upload tarxz Mandrel build
uses: actions/upload-artifact@v3
with:
name: mandrel-java24-linux-amd64-test-build-tarxz
path: mandrel-java24-linux-amd64.tarxz
name: mandrel-java25-linux-amd64-test-build-tarxz
path: mandrel-java25-linux-amd64.tarxz

build-and-test-on-mac:
name: ${{ matrix.os }} Build and test ${{ matrix.mandrel-ref }} branch/tag
Expand Down Expand Up @@ -179,12 +179,12 @@ jobs:
export ARCH=$(echo ${{ runner.arch }} | tr '[:upper:]' '[:lower:]' | sed 's/arm64/aarch64/')
echo "ARCH=${ARCH}"
echo "ARCH=${ARCH}" >> "$GITHUB_OUTPUT"
- name: Get latest OpenJDK 24 with static libs
- name: Get latest OpenJDK 25 with static libs
env:
ARCH: ${{ steps.arch.outputs.ARCH }}
run: |
curl -sL https://api.adoptium.net/v3/binary/latest/24/ea/mac/${ARCH}/jdk/hotspot/normal/eclipse -o jdk.tar.gz
curl -sL https://api.adoptium.net/v3/binary/latest/24/ea/mac/${ARCH}/staticlibs/hotspot/normal/eclipse -o jdk-static-libs.tar.gz
curl -sL https://api.adoptium.net/v3/binary/latest/25/ea/mac/${ARCH}/jdk/hotspot/normal/eclipse -o jdk.tar.gz
curl -sL https://api.adoptium.net/v3/binary/latest/25/ea/mac/${ARCH}/staticlibs/hotspot/normal/eclipse -o jdk-static-libs.tar.gz
mkdir -p ${JAVA_HOME}
tar xf jdk.tar.gz -C ${JAVA_HOME} --strip-components=1
tar xf jdk-static-libs.tar.gz -C ${JAVA_HOME} --strip-components=1
Expand Down Expand Up @@ -215,13 +215,13 @@ jobs:
${MAC_JAVA_HOME}/bin/java -ea build.java --mx-home ${MX_HOME} --mandrel-repo ${MANDREL_REPO} --mandrel-version "${MANDREL_VERSION}" --archive-suffix tar.gz
export MANDREL_VERSION_UNTIL_SPACE="$( echo ${MANDREL_VERSION} | sed -e 's/\([^ ]*\).*/\1/;t' )"
export ARCH=$( echo ${ARCH} | sed 's/x64/amd64/' )
export ARCHIVE_NAME="mandrel-java24-darwin-${ARCH}-${MANDREL_VERSION_UNTIL_SPACE}.tar.gz"
mv ${ARCHIVE_NAME} mandrel-java24-darwin-${ARCH}.tar.gz
export ARCHIVE_NAME="mandrel-java25-macos-${ARCH}-${MANDREL_VERSION_UNTIL_SPACE}.tar.gz"
mv ${ARCHIVE_NAME} mandrel-java25-macos-${ARCH}.tar.gz
echo "ARCH=${ARCH}" >> "$GITHUB_OUTPUT"
- name: Smoke tests
run: |
export MANDREL_VERSION_UNTIL_SPACE="$( echo ${MANDREL_VERSION} | sed -e 's/\([^ ]*\).*/\1/;t' )"
export MANDREL_HOME=${PWD}/mandrel-java24-${MANDREL_VERSION_UNTIL_SPACE}/Contents/Home
export MANDREL_HOME=${PWD}/mandrel-java25-${MANDREL_VERSION_UNTIL_SPACE}/Contents/Home
${MANDREL_HOME}/bin/native-image --version
${MANDREL_HOME}/bin/native-image --version | grep "${MANDREL_VERSION}"
echo "
Expand Down Expand Up @@ -249,7 +249,7 @@ jobs:
System.out.println(\"Implicitly declared classes.\");
}
" > ImplicitClass.java
${MANDREL_HOME}/bin/javac --enable-preview --release 24 ImplicitClass.java
${MANDREL_HOME}/bin/javac --enable-preview --release 25 ImplicitClass.java
${MANDREL_HOME}/bin/java --enable-preview ImplicitClass | tee java.txt
${MANDREL_HOME}/bin/native-image --enable-preview ImplicitClass
./implicitclass | tee native.txt
Expand All @@ -259,8 +259,8 @@ jobs:
env:
ARCH: ${{ steps.build.outputs.ARCH }}
with:
name: mandrel-java24-darwin-${ARCH}-test-build
path: mandrel-java24-darwin-${ARCH}.tar.gz
name: mandrel-java25-macos-${ARCH}-test-build
path: mandrel-java25-macos-${ARCH}.tar.gz

build-and-test-on-windows:
name: Windows Build and test ${{ matrix.mandrel-ref }} branch/tag
Expand Down Expand Up @@ -295,13 +295,13 @@ jobs:
key: ${{ runner.os }}-mx-${{ hashFiles('**/suite.py') }}
restore-keys: |
${{ runner.os }}-${{ matrix.quarkus-name }}-maven-
- name: Get latest OpenJDK 24 with static libs
- name: Get latest OpenJDK 25 with static libs
run: |
$wc = New-Object System.Net.WebClient
$wc.DownloadFile("https://api.adoptium.net/v3/binary/latest/24/ea/windows/x64/jdk/hotspot/normal/eclipse", "$Env:temp\jdk.zip")
$wc.DownloadFile("https://api.adoptium.net/v3/binary/latest/25/ea/windows/x64/jdk/hotspot/normal/eclipse", "$Env:temp\jdk.zip")
Expand-Archive "$Env:temp\jdk.zip" -DestinationPath "$Env:temp"
Move-Item -Path "$Env:temp\jdk-*" -Destination $Env:JAVA_HOME
$wc.DownloadFile("https://api.adoptium.net/v3/binary/latest/24/ea/windows/x64/staticlibs/hotspot/normal/eclipse", "$Env:temp\jdk-staticlibs.zip")
$wc.DownloadFile("https://api.adoptium.net/v3/binary/latest/25/ea/windows/x64/staticlibs/hotspot/normal/eclipse", "$Env:temp\jdk-staticlibs.zip")
Expand-Archive "$Env:temp\jdk-staticlibs.zip" -DestinationPath "$Env:temp"
Move-Item -Path "$Env:temp\jdk-*\lib\static" -Destination $Env:JAVA_HOME\lib\
Remove-Item -Recurse "$Env:temp\jdk-*"
Expand Down Expand Up @@ -333,7 +333,7 @@ jobs:
}
}
$MANDREL_VERSION_UNTIL_SPACE=$Env:MANDREL_VERSION -replace "^(.*?) .*$","`$1"
$MANDREL_HOME=".\mandrel-java24-$MANDREL_VERSION_UNTIL_SPACE"
$MANDREL_HOME=".\mandrel-java25-$MANDREL_VERSION_UNTIL_SPACE"
$VERSION=(& $MANDREL_HOME\bin\native-image.cmd --version)
Write-Host $VERSION
if ("$VERSION" -NotMatch "$Env:MANDREL_VERSION") {
Expand Down Expand Up @@ -368,7 +368,7 @@ jobs:
System.out.println(`"Implicitly declared classes.`");
}
"
& $MANDREL_HOME\bin\javac --enable-preview --release 24 ImplicitClass.java
& $MANDREL_HOME\bin\javac --enable-preview --release 25 ImplicitClass.java
& $MANDREL_HOME\bin\java --enable-preview ImplicitClass | Set-Content java.txt
& $MANDREL_HOME\bin\native-image.cmd --enable-preview ImplicitClass
& ./implicitclass | Set-Content native.txt
Expand All @@ -381,13 +381,13 @@ jobs:
shell: bash
run: |
export MANDREL_VERSION_UNTIL_SPACE="$( echo ${MANDREL_VERSION} | sed -e 's/\([^ ]*\).*/\1/;t' )"
export ARCHIVE_NAME="mandrel-java24-windows-amd64-${MANDREL_VERSION_UNTIL_SPACE}.zip"
mv ${ARCHIVE_NAME} mandrel-java24-windows-amd64.zip
export ARCHIVE_NAME="mandrel-java25-windows-amd64-${MANDREL_VERSION_UNTIL_SPACE}.zip"
mv ${ARCHIVE_NAME} mandrel-java25-windows-amd64.zip
- name: Upload Mandrel build
uses: actions/upload-artifact@v3
with:
name: mandrel-java24-windows-amd64-test-build
path: mandrel-java24-windows-amd64.zip
name: mandrel-java25-windows-amd64-test-build
path: mandrel-java25-windows-amd64.zip

build-and-test-2-step:
name: 2-step Linux Build and test ${{ matrix.mandrel-ref }} branch/tag
Expand Down Expand Up @@ -421,10 +421,10 @@ jobs:
key: ${{ runner.os }}-mx-${{ hashFiles('**/suite.py') }}
restore-keys: |
${{ runner.os }}-${{ matrix.quarkus-name }}-maven-
- name: Get latest OpenJDK 24 with static libs
- name: Get latest OpenJDK 25 with static libs
run: |
curl -sL https://api.adoptium.net/v3/binary/latest/24/ea/linux/x64/jdk/hotspot/normal/eclipse -o jdk.tar.gz
curl -sL https://api.adoptium.net/v3/binary/latest/24/ea/linux/x64/staticlibs/hotspot/normal/eclipse -o jdk-static-libs.tar.gz
curl -sL https://api.adoptium.net/v3/binary/latest/25/ea/linux/x64/jdk/hotspot/normal/eclipse -o jdk.tar.gz
curl -sL https://api.adoptium.net/v3/binary/latest/25/ea/linux/x64/staticlibs/hotspot/normal/eclipse -o jdk-static-libs.tar.gz
mkdir -p ${JAVA_HOME}
tar xf jdk.tar.gz -C ${JAVA_HOME} --strip-components=1
tar xf jdk-static-libs.tar.gz -C ${JAVA_HOME} --strip-components=1
Expand Down Expand Up @@ -457,12 +457,12 @@ jobs:
--skip-java \
--archive-suffix tar.gz
export MANDREL_VERSION_UNTIL_SPACE="$( echo ${MANDREL_VERSION} | sed -e 's/\([^ ]*\).*/\1/;t' )"
export ARCHIVE_NAME="mandrel-java24-linux-amd64-${MANDREL_VERSION_UNTIL_SPACE}.tar.gz"
mv ${ARCHIVE_NAME} mandrel-java24-linux-amd64.tar.gz
export ARCHIVE_NAME="mandrel-java25-linux-amd64-${MANDREL_VERSION_UNTIL_SPACE}.tar.gz"
mv ${ARCHIVE_NAME} mandrel-java25-linux-amd64.tar.gz
- name: Smoke tests
run: |
export MANDREL_VERSION_UNTIL_SPACE="$( echo ${MANDREL_VERSION} | sed -e 's/\([^ ]*\).*/\1/;t' )"
export MANDREL_HOME=${PWD}/mandrel-java24-${MANDREL_VERSION_UNTIL_SPACE}
export MANDREL_HOME=${PWD}/mandrel-java25-${MANDREL_VERSION_UNTIL_SPACE}
${MANDREL_HOME}/bin/native-image --version
${MANDREL_HOME}/bin/native-image --version | grep "${MANDREL_VERSION}"
echo "
Expand Down Expand Up @@ -490,13 +490,13 @@ jobs:
System.out.println(\"Implicitly declared classes.\");
}
" > ImplicitClass.java
${MANDREL_HOME}/bin/javac --enable-preview --release 24 ImplicitClass.java
${MANDREL_HOME}/bin/javac --enable-preview --release 25 ImplicitClass.java
${MANDREL_HOME}/bin/java --enable-preview ImplicitClass | tee java.txt
${MANDREL_HOME}/bin/native-image --enable-preview ImplicitClass
./implicitclass | tee native.txt
diff java.txt native.txt
- name: Upload Mandrel build
uses: actions/upload-artifact@v3
with:
name: mandrel-java24-linux-amd64-2step-test-build
path: mandrel-java24-linux-amd64.tar.gz
name: mandrel-java25-linux-amd64-2step-test-build
path: mandrel-java25-linux-amd64.tar.gz

0 comments on commit 9dffc0c

Please sign in to comment.