scripts: gha: exit if we can't move to a specified directory
This commit is contained in:
parent
3e67445ef3
commit
b3c1c173a9
3 changed files with 4 additions and 5 deletions
|
@ -3,12 +3,12 @@
|
||||||
. scripts/lib.sh
|
. scripts/lib.sh
|
||||||
. /opt/toolchains/motomagx/setenv-z6.sh
|
. /opt/toolchains/motomagx/setenv-z6.sh
|
||||||
|
|
||||||
cd $GITHUB_WORKSPACE
|
cd $GITHUB_WORKSPACE || die
|
||||||
|
|
||||||
mkdir -p Xash/valve/cl_dlls
|
mkdir -p Xash/valve/cl_dlls
|
||||||
mkdir -p Xash/valve/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
|
./waf configure -T fast --enable-magx --enable-simple-mod-hacks build install --destdir=../Xash || die
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,6 @@ docker run --name xash-build --rm -v `pwd`:`pwd` -w `pwd` devkitpro/devkita64:la
|
||||||
|
|
||||||
echo "Packaging artifacts..."
|
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/
|
7z a -t7z ../artifacts/xash3d-fwgs-nswitch.7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -r xash3d/
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -44,8 +44,7 @@ echo "Building engine..."
|
||||||
|
|
||||||
echo "Building HLSDK..."
|
echo "Building HLSDK..."
|
||||||
|
|
||||||
# TODO: replace with hlsdk-portable when PRs are merged
|
pushd hlsdk-portable || die
|
||||||
pushd hlsdk-portable
|
|
||||||
build_hlsdk mobile_hacks valve
|
build_hlsdk mobile_hacks valve
|
||||||
build_hlsdk opfor gearbox
|
build_hlsdk opfor gearbox
|
||||||
build_hlsdk bshift bshift
|
build_hlsdk bshift bshift
|
||||||
|
|
Loading…
Add table
Reference in a new issue