Skip to content

Commit 05e16e0

Browse files
Refactor GraalVM installation in build script
Updated the GraalVM installation process in build.sh to download and extract the JDK directly.
1 parent 2f590a4 commit 05e16e0

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.kokoro/build.sh

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,18 @@ integration)
7272
;;
7373
graalvm)
7474
# Run Unit and Integration Tests with Native Image
75-
set -ex
76-
microdnf install zip
77-
curl -s "https://get.sdkman.io" | bash -e
78-
source "/root/.sdkman/bin/sdkman-init.sh"
79-
sdk install java 25-graalce -Y
75+
echo "Install GraalVM 25"
76+
echo "$JAVA_HOME"
77+
pwd
78+
mkdir -p ~/tools/jdk
79+
cd ~/tools/jdk
80+
wget https://download.oracle.com/graalvm/25/latest/graalvm-jdk-25_linux-x64_bin.tar.gz
81+
tar -xf graalvm-jdk-25_linux-x64_bin.tar.gz
82+
export JAVA_HOME=~/tools/jdk/graalvm-jdk-25+37.1
83+
export PATH=$JAVA_HOME/bin:$PATH
8084
java -version
85+
echo "Running native image tests..."
86+
cd "${scriptDir}/.."
8187
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test
8288
RETURN_CODE=$?
8389
;;

0 commit comments

Comments
 (0)