scripts: cirrus: build dedicated server alongside full client for slightly faster builds

This commit is contained in:
Alibek Omarov 2025-04-24 23:33:46 +03:00
parent 1abb16638f
commit 291f24a611
2 changed files with 3 additions and 18 deletions

View File

@ -7,8 +7,7 @@ task:
- pkg install -y pkgconf git sdl2 python fontconfig libvorbis opusfile bzip2 libbacktrace
- git submodule update --init --recursive
test_script:
- ./scripts/cirrus/build_freebsd.sh dedicated
- ./scripts/cirrus/build_freebsd.sh full
- ./scripts/cirrus/build_freebsd.sh
task:
name: freebsd-15-amd64
@ -19,5 +18,4 @@ task:
- pkg install -y pkgconf git sdl2 python fontconfig libvorbis opusfile bzip2 libbacktrace
- git submodule update --init --recursive
test_script:
- ./scripts/cirrus/build_freebsd.sh dedicated
- ./scripts/cirrus/build_freebsd.sh full
- ./scripts/cirrus/build_freebsd.sh

View File

@ -2,25 +2,12 @@
. scripts/lib.sh
if [ "$1" = "dedicated" ]; then
APP=xashds
else # elif [ "$1" = "full" ]; then
APP=xash3d-fwgs
fi
build_engine()
{
# Build engine
cd "$CIRRUS_WORKING_DIR" || die
if [ "$APP" = "xashds" ]; then
./waf configure -T release -d --enable-tests || die_configure
elif [ "$APP" = "xash3d-fwgs" ]; then
./waf configure -T release --enable-utils --enable-gl4es --enable-gles1 --enable-gles2 --enable-tests || die_configure
else
die
fi
./waf configure --enable-utils --enable-all-renderers --enable-tests --enable-dedicated || die_configure
./waf build || die
}