2019-11-07 00:46:04 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
. scripts/lib.sh
|
|
|
|
. /opt/toolchains/motomagx/setenv-z6.sh
|
|
|
|
|
ci: migrate to GitHub Actions
* travis: disable build, disable deploy, add free aarch64/ppc64le/s390x builds
* scripts: cleanup of old CI scripts
* scripts: now port to GitHub Actions
* actions: fix extras checkout
* github: remove codeql action, turned out not to be very useful
* github: remove quiet flag on wget
* github: are we allowed to use envvars?
* github: add needed dependencies for linux
* github: install wget for windows
* scripts: convert our CPU architecture naming into what AppImage uses
* github: run scripts with bash explicitly
* github: first try to upload to GitHub Releases, enable amd64 win32 builds
* Use our uploadtool fork
* ci: include android, motomagx build for gha, refactor cirrus and travis ci scripts
* gha: try to fix build
* travis: try to fix build
* gha: try to fix upload, fix win32 build
* gha: use curl instead of wget, as it's preinstalled for windows. Fix Android build
* gha: add llvm repository, install clang-12 for android
* gha: motomagx: fail fast
* gha: android: explicitly set clang-12 as compiler and llvm-strip-12 as strip
* waifulib: xcompile: respect environment variables when using host compiler for Android
* waifulib: xcompile: use correct environ dict
* gha: try to fix -fuse-ld=lld with clang-12
* waifulib: xcompile: fix typo
* scripts: xcompile: fix motomagx build
* mainui: upgrade
* gha: fix android build, last time
* engine: wscript: disable crashhandler for magx
2021-07-03 19:21:09 +02:00
|
|
|
cd $GITHUB_WORKSPACE
|
2019-11-07 00:46:04 +01:00
|
|
|
|
|
|
|
mkdir -p Xash/valve/cl_dlls
|
|
|
|
mkdir -p Xash/valve/dlls
|
|
|
|
|
2021-12-17 02:09:54 +01:00
|
|
|
pushd hlsdk
|
ci: migrate to GitHub Actions
* travis: disable build, disable deploy, add free aarch64/ppc64le/s390x builds
* scripts: cleanup of old CI scripts
* scripts: now port to GitHub Actions
* actions: fix extras checkout
* github: remove codeql action, turned out not to be very useful
* github: remove quiet flag on wget
* github: are we allowed to use envvars?
* github: add needed dependencies for linux
* github: install wget for windows
* scripts: convert our CPU architecture naming into what AppImage uses
* github: run scripts with bash explicitly
* github: first try to upload to GitHub Releases, enable amd64 win32 builds
* Use our uploadtool fork
* ci: include android, motomagx build for gha, refactor cirrus and travis ci scripts
* gha: try to fix build
* travis: try to fix build
* gha: try to fix upload, fix win32 build
* gha: use curl instead of wget, as it's preinstalled for windows. Fix Android build
* gha: add llvm repository, install clang-12 for android
* gha: motomagx: fail fast
* gha: android: explicitly set clang-12 as compiler and llvm-strip-12 as strip
* waifulib: xcompile: respect environment variables when using host compiler for Android
* waifulib: xcompile: use correct environ dict
* gha: try to fix -fuse-ld=lld with clang-12
* waifulib: xcompile: fix typo
* scripts: xcompile: fix motomagx build
* mainui: upgrade
* gha: fix android build, last time
* engine: wscript: disable crashhandler for magx
2021-07-03 19:21:09 +02:00
|
|
|
./waf configure -T fast --enable-magx --enable-simple-mod-hacks build install --destdir=../Xash || die
|
2021-12-17 02:09:54 +01:00
|
|
|
popd
|
2019-11-07 00:46:04 +01:00
|
|
|
|
2021-11-25 14:57:02 +01:00
|
|
|
./waf configure -T fast --enable-magx build install --destdir=Xash/ || die
|
2019-11-07 03:01:16 +01:00
|
|
|
|
|
|
|
cat > Xash/run.sh << 'EOF'
|
|
|
|
mypath=${0%/*}
|
|
|
|
LIBDIR1=/ezxlocal/download/mystuff/games/lib
|
|
|
|
LIBDIR2=/mmc/mmca1/games/lib
|
|
|
|
LIBDIR3=$mypath
|
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIBDIR1:$LIBDIR2:$LIBDIR3
|
|
|
|
export HOME=$mypath
|
|
|
|
export SDL_QT_INVERT_ROTATION=1
|
|
|
|
export SWAP_PATH=$HOME/xash.swap
|
|
|
|
cd $mypath
|
|
|
|
sleep 1
|
|
|
|
|
2019-11-07 03:07:10 +01:00
|
|
|
exec $mypath/xash -dev $@
|
2019-11-07 03:01:16 +01:00
|
|
|
EOF
|
|
|
|
|
2021-12-17 02:09:54 +01:00
|
|
|
mkdir -p artifacts/
|
|
|
|
7z a -t7z artifacts/xash3d-fwgs-magx.7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -r Xash/
|