-
Notifications
You must be signed in to change notification settings - Fork 56
/
build_windows.sh
15 lines (12 loc) · 1007 Bytes
/
build_windows.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# This file is deprecated now since TravaOpenJDK is moving to GitHub Actions
export PATH=/cygdrive/c/tools/cygwin/bin:$PATH
wget -q -O OpenJDK11_x64_Windows.zip "https://api.adoptopenjdk.net/v3/binary/version/jdk-11.0.6%2B10/windows/x64/jdk/hotspot/normal/adoptopenjdk?project=jdk"
JDK_BOOT_DIR=$PWD/$(unzip -Z1 OpenJDK11_x64_Windows.zip | grep 'bin/javac' | tr '/' '\n' | tail -3 | head -1)
unzip -q OpenJDK11_x64_Windows.zip
# unset cygwin's gcc preconfigured
unset -v CC
unset -v CXX
export JAVA_HOME=${JDK_BOOT_DIR}
cd ./openjdk-build
export LOG=info
./makejdk-any-platform.sh --tag "${SOURCE_JDK_TAG}" --build-variant dcevm --branch dcevm11-jdk-11.0.11-adopt --jdk-boot-dir ${JDK_BOOT_DIR} --hswap-agent-download-url ${HSWAP_AGENT_DOWNLOAD_URL} --hswap-agent-core-download-url ${HSWAP_AGENT_CORE_DOWNLOAD_URL} --disable-test-image --check-fingerprint false --configure-args '-disable-warnings-as-errors --disable-hotspot-gtest' --target-file-name java11-openjdk-dcevm-${TRAVIS_OS_NAME}.zip jdk11u