Last active
April 10, 2020 00:51
-
-
Save zakkak/ff8a337593bf8242316c88ace3140b35 to your computer and use it in GitHub Desktop.
Test latest quarkus-native with latest graalvm on JDK11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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