build: switch to matrix builds for Debian based variant builds (#1313)

This commit is contained in:
Geoff Bourne
2022-01-29 14:53:34 -06:00
committed by GitHub
parent 469afb3200
commit eb694463c5
20 changed files with 142 additions and 103 deletions

View File

@@ -183,6 +183,7 @@ function isFamily() {
}
function isType() {
for t in "${@}"; do
# shellcheck disable=SC2153
if [[ $TYPE == "$t" ]]; then
return 0
fi
@@ -190,6 +191,17 @@ function isType() {
return 1
}
function evaluateJavaCompatibilityForForge() {
javaRelease=$(mc-image-helper java-release)
if versionLessThan 1.18 && (( javaRelease > 8 )); then
log "**********************************************************************"
log "WARNING: Some mods and modpacks may require Java 8."
log " Please use itzg/minecraft-server:java8"
log "**********************************************************************"
sleep 5
fi
}
function extract() {
src=${1?}
destDir=${2?}