Skip to content

Instantly share code, notes, and snippets.

@zakkak
Last active April 10, 2020 00:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zakkak/ff8a337593bf8242316c88ace3140b35 to your computer and use it in GitHub Desktop.
Save zakkak/ff8a337593bf8242316c88ace3140b35 to your computer and use it in GitHub Desktop.
Test latest quarkus-native with latest graalvm on JDK11
#!/usr/bin/env sh
# Get labsJDK11
JVMCI_VERSION=jvmci-20.1-b01
JDK_VERSION=11.0.6+9
JDK="labsjdk-ce-${JDK_VERSION}-${JVMCI_VERSION}-linux-amd64"
JDK_TAR="${JDK}.tar.gz"
wget "https://github.com/graalvm/labs-openjdk-11/releases/download/${JVMCI_VERSION}/${JDK_TAR}" -O ${JDK_TAR}
tar xf ${JDK_TAR}
JAVA_HOME=${PWD}/${JDK}
# get mx
git clone https://github.com/graalvm/mx.git
PATH=${PATH}:${PWD}/mx
# build graalvm native-image
git clone https://github.com/oracle/graal.git
ROOT=${PWD}
cd graal/substratevm
mx --native-images=native-image build
GRAALVM_HOME=$(mx --native-images=native-image graalvm-home)
PATH=${PATH}:${GRAALVM_HOME}/bin
# build and test quarkus
cd ${ROOT}
git clone https://github.com/quarkusio/quarkus.git
cd quarkus
./mvnw clean install -Dnative
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment