Skip to content

Instantly share code, notes, and snippets.

@lazar-mitrovic
Last active December 7, 2020 13:24
Show Gist options
  • Save lazar-mitrovic/e726b9263bef5ed3f9a95e1bad32c125 to your computer and use it in GitHub Desktop.
Save lazar-mitrovic/e726b9263bef5ed3f9a95e1bad32c125 to your computer and use it in GitHub Desktop.
*DEPRECATED* (see SCRIPT_URL for new version) Build latest GraalVM CE (Java 8 / 11)
#!/bin/bash
set -e # Die on errors
SCRIPT_VERSION=1.0.16
SCRIPT_URL="https://gist.githubusercontent.com/lazar-mitrovic/94430814332adae7d5eaf51907b77379/raw/buildGraal.py?cachebust=$(date +%s)"
if [ "$1" == "version" ]; then
echo "$SCRIPT_VERSION"
exit 0
fi
info() {
CYAN='\033[1;36m'
NC='\033[0m'
printf "${CYAN}[INFO] $@${NC}\n"
}
if [ ! -f "buildGraal.py" ]; then
curl -s $SCRIPT_URL > buildGraal.py
chmod +x buildGraal.py
fi
COMMAND="./buildGraal.py ${@:1}"
info "This script is deprecated."
info "New python version was downloaded, and should be ran as:"
echo $COMMAND
echo ""
info "Script will now run python version as fallback."
eval $COMMAND
@frank-dspeed
Copy link

you should switch and use https://github.com/graalvm/graalvm-ce-dev-builds/releases

directly there you can get the daily builds.

@lazar-mitrovic
Copy link
Author

This script builds GraalVM from source code and as such is intended for people who are trying to get into GraalVM development/contributing (or are willing to thinker around with it, but are at loss about how whole mx build process works). Thus, those latest builds from master are unsuitable for that use-case.

If you need a script that will download latest build from master, you can take a look at this script which is taken from CI for one of ours not-yet-public projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment