mirror of
https://github.com/AngelAuraMC/angelauramc-openjdk-build.git
synced 2025-09-08 11:50:34 -04:00
Fix(build): switch java versions on the fly only for local docker builds
This commit is contained in:
parent
75de467a28
commit
5b7f9a8a5c
@ -7,8 +7,13 @@ then
|
||||
export TARGET_VERSION=21
|
||||
fi
|
||||
|
||||
|
||||
# Set custom java version as the defautl jdk depending on the target version
|
||||
update-java-alternatives -s java-1.${TARGET_VERSION}*
|
||||
# Local build with docker only
|
||||
if [[ -z "$CI" ]]
|
||||
then
|
||||
update-java-alternatives -s java-1.${TARGET_VERSION}*
|
||||
fi
|
||||
|
||||
if [[ -z "$BUILD_FREETYPE_VERSION" ]]
|
||||
then
|
||||
|
Loading…
x
Reference in New Issue
Block a user