mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-16 06:00:33 +01:00
Alibek Omarov #SupportRMS
21a31ec81d
* 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
27 lines
627 B
Bash
Executable File
27 lines
627 B
Bash
Executable File
#!/bin/bash
|
|
|
|
export ANDROID_SDK_HOME=$GITHUB_WORKSPACE/sdk
|
|
export ANDROID_NDK_HOME=$ANDROID_SDK_HOME/ndk-bundle
|
|
|
|
pushd android
|
|
if [[ "$GH_CPU_ARCH" == "32" ]]; then
|
|
export ARCHS="armeabi armeabi-v7a x86"
|
|
elif [[ "$GH_CPU_ARCH" == "64" ]]; then
|
|
export ARCHS="aarch64 x86_64"
|
|
elif [[ "$GH_CPU_ARCH" == "32&64" ]]; then
|
|
export ARCHS="armeabi armeabi-v7a x86 aarch64 x86_64"
|
|
fi
|
|
|
|
export API=21
|
|
export TOOLCHAIN=host
|
|
export CC=clang-12
|
|
export CXX=clang++-12
|
|
export STRIP=llvm-strip-12
|
|
sh compile.sh release
|
|
|
|
if [[ "$GH_CPU_ARCH" == "64" ]]; then
|
|
mv xashdroid.apk ../xashdroid-64.apk
|
|
else
|
|
mv xashdroid.apk ../xashdroid-32.apk
|
|
fi
|