Browse Source

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

pull/2/head
Alibek Omarov 2 years ago
parent
commit
b3c1c173a9
  1. 4
      scripts/gha/build_motomagx.sh
  2. 2
      scripts/gha/build_nswitch.sh
  3. 3
      scripts/gha/build_nswitch_docker.sh

4
scripts/gha/build_motomagx.sh

@ -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

2
scripts/gha/build_nswitch.sh

@ -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

3
scripts/gha/build_nswitch_docker.sh

@ -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…
Cancel
Save