mirror of
https://github.com/godotengine/godot-build-scripts.git
synced 2025-12-31 05:48:35 +03:00
Merge pull request #25 from goostengine/config-build-name
Make `BUILD_NAME` globally configurable
This commit is contained in:
@@ -4,7 +4,6 @@ set -e
|
||||
|
||||
# Config
|
||||
|
||||
export BUILD_NAME=official
|
||||
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
||||
export OPTIONS="production=yes"
|
||||
export OPTIONS_MONO="module_mono_enabled=yes mono_static=no"
|
||||
|
||||
@@ -4,7 +4,6 @@ set -e
|
||||
|
||||
# Config
|
||||
|
||||
export BUILD_NAME=official
|
||||
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
||||
# Keep LTO disabled for iOS - it works but it makes linking apps on deploy very slow,
|
||||
# which is seen as a regression in the current workflow.
|
||||
|
||||
@@ -4,7 +4,6 @@ set -e
|
||||
|
||||
# Config
|
||||
|
||||
export BUILD_NAME=official
|
||||
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
||||
export OPTIONS="production=yes"
|
||||
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes mono_prefix=/root/mono-installs/wasm-runtime-release use_lto=no"
|
||||
|
||||
@@ -4,7 +4,6 @@ set -e
|
||||
|
||||
# Config
|
||||
|
||||
export BUILD_NAME=official
|
||||
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
||||
export OPTIONS="production=yes"
|
||||
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes"
|
||||
|
||||
@@ -4,7 +4,6 @@ set -e
|
||||
|
||||
# Config
|
||||
|
||||
export BUILD_NAME=official
|
||||
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
||||
export OPTIONS="osxcross_sdk=darwin20 production=yes"
|
||||
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes mono_prefix=/root/dependencies/mono"
|
||||
|
||||
@@ -4,7 +4,6 @@ set -e
|
||||
|
||||
# Config
|
||||
|
||||
export BUILD_NAME=official
|
||||
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
||||
export OPTIONS="debug_symbols=no use_static_cpp=no"
|
||||
export TERM=xterm
|
||||
|
||||
@@ -4,7 +4,6 @@ set -e
|
||||
|
||||
# Config
|
||||
|
||||
export BUILD_NAME=official
|
||||
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
||||
export OPTIONS="production=yes"
|
||||
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes"
|
||||
|
||||
@@ -4,7 +4,6 @@ set -e
|
||||
|
||||
# Config
|
||||
|
||||
export BUILD_NAME=official
|
||||
export SCONS="call scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
||||
export OPTIONS="production=yes"
|
||||
export BUILD_ARCHES="x86 x64 arm"
|
||||
|
||||
@@ -4,7 +4,6 @@ set -e
|
||||
|
||||
# Config
|
||||
|
||||
export BUILD_NAME=official
|
||||
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
||||
export OPTIONS="production=yes"
|
||||
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes"
|
||||
|
||||
6
build.sh
6
build.sh
@@ -13,6 +13,10 @@ if [ ! -e config.sh ]; then
|
||||
fi
|
||||
source ./config.sh
|
||||
|
||||
if [ -z "${BUILD_NAME}" ]; then
|
||||
export BUILD_NAME="custom_build"
|
||||
fi
|
||||
|
||||
if [ -z "${NUM_CORES}" ]; then
|
||||
export NUM_CORES=16
|
||||
fi
|
||||
@@ -162,7 +166,7 @@ export basedir="$(pwd)"
|
||||
mkdir -p ${basedir}/out
|
||||
mkdir -p ${basedir}/out/logs
|
||||
|
||||
export podman_run="${podman} run -it --rm --env NUM_CORES --env CLASSICAL=${build_classical} --env MONO=${build_mono} -v ${basedir}/godot.tar.gz:/root/godot.tar.gz -v ${basedir}/mono-glue:/root/mono-glue -w /root/"
|
||||
export podman_run="${podman} run -it --rm --env BUILD_NAME --env NUM_CORES --env CLASSICAL=${build_classical} --env MONO=${build_mono} -v ${basedir}/godot.tar.gz:/root/godot.tar.gz -v ${basedir}/mono-glue:/root/mono-glue -w /root/"
|
||||
export img_version=3.2-mono-6.12.0.114
|
||||
|
||||
# Get AOT compilers from their containers.
|
||||
|
||||
@@ -11,6 +11,9 @@
|
||||
# https://github.com/godotengine/build-containers
|
||||
export REGISTRY="registry.prehensile-tales.com"
|
||||
|
||||
# Default build name used to distinguish between official and custom builds.
|
||||
export BUILD_NAME="custom_build"
|
||||
|
||||
# Default number of parallel cores for each build.
|
||||
export NUM_CORES=16
|
||||
|
||||
|
||||
Reference in New Issue
Block a user