2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-25 19:30:08 +01:00

scripts: gha: exit if we can't move to a specified directory

This commit is contained in:
Alibek Omarov 2023-03-27 04:30:21 +03:00
parent 3e67445ef3
commit b3c1c173a9
3 changed files with 4 additions and 5 deletions

View File

@ -3,12 +3,12 @@
. scripts/lib.sh
. /opt/toolchains/motomagx/setenv-z6.sh
cd $GITHUB_WORKSPACE
cd $GITHUB_WORKSPACE || die
mkdir -p Xash/valve/cl_dlls
mkdir -p Xash/valve/dlls
pushd hlsdk
pushd hlsdk || die
./waf configure -T fast --enable-magx --enable-simple-mod-hacks build install --destdir=../Xash || die
popd

View File

@ -15,6 +15,6 @@ docker run --name xash-build --rm -v `pwd`:`pwd` -w `pwd` devkitpro/devkita64:la
echo "Packaging artifacts..."
pushd pkgtemp
pushd pkgtemp || die
7z a -t7z ../artifacts/xash3d-fwgs-nswitch.7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -r xash3d/
popd

View File

@ -44,8 +44,7 @@ echo "Building engine..."
echo "Building HLSDK..."
# TODO: replace with hlsdk-portable when PRs are merged
pushd hlsdk-portable
pushd hlsdk-portable || die
build_hlsdk mobile_hacks valve
build_hlsdk opfor gearbox
build_hlsdk bshift bshift