scripts: gha: psvita: fix building HLSDK, exit if we can't move to a directory

This commit is contained in:
Alibek Omarov 2023-03-27 04:27:55 +03:00
parent 127bd89b44
commit 3e67445ef3
1 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ make -C vitaGL NO_TEX_COMBINER=1 HAVE_UNFLIPPED_FBOS=1 HAVE_PTHREAD=1 MATH_SPEED
echo "Building vrtld..."
pushd vita-rtld
pushd vita-rtld || die
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release || die_configure
cmake --build build -- -j2 || die
cmake --install build || die
@ -35,7 +35,7 @@ popd
echo "Building SDL..."
pushd SDL
pushd SDL || die
cmake -S. -Bbuild -DCMAKE_TOOLCHAIN_FILE=${VITASDK}/share/vita.toolchain.cmake -DCMAKE_BUILD_TYPE=Release -DVIDEO_VITA_VGL=ON || die_configure
cmake --build build -- -j2 || die
cmake --install build || die
@ -49,7 +49,7 @@ cp build/engine/xash.vpk pkgtemp/
echo "Building HLSDK..."
pushd hlsdk-xash3d
pushd hlsdk-portable || die
build_hlsdk mobile_hacks valve
build_hlsdk opfor gearbox
build_hlsdk bshift bshift
@ -92,6 +92,6 @@ popd
echo "Packaging artifacts..."
pushd pkgtemp
pushd pkgtemp || die
7z a -t7z ../artifacts/xash3d-fwgs-psvita.7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -r xash.vpk data/
popd