-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (33 loc) · 1.58 KB
/
AndroidDebug.yml
File metadata and controls
36 lines (33 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Android - Debug
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build apk
run: |
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-11.1.0/clang+llvm-11.1.0-x86_64-linux-gnu-ubuntu-20.10.tar.xz -o /dev/null
tar xpvf clang+llvm-11.1.0-x86_64-linux-gnu-ubuntu-20.10.tar.xz
wget https://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip -o /dev/null
unzip android-ndk-r13b-linux-x86_64.zip
export ANDROID_NDK_HOME=$PWD/android-ndk-r13b/
export NDK_HOME=$PWD/android-ndk-r13b/
export PATH=$PWD/clang+llvm-11.1.0-x86_64-linux-gnu-ubuntu-20.10/bin:$PATH
./waf configure -T debug --64bits --togles --disable-warns --android=aarch64,host,21 --prefix=/home/runner/work/source-sdk-2012/source-sdk-2012/csgo-android
./waf install -j3
sudo apt update -y && sudo apt upgrade -y && sudo apt install -y make openjdk-8-jdk openjdk-8-jre ant-contrib
git clone https://github.com/nn-firc/source-sdk-android.git --depth 1
cp -r csgo-android/lib source-sdk-android/libs
cp -r lib/android/aarch64/libSDL2.so source-sdk-android/libs/arm64-v8a
cd source-sdk-android && JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 ANDROID_HOME=android-sdk ant debug && cd ..
- uses: actions/upload-artifact@v3
with:
name: Debug Android
path: /home/runner/work/source-sdk-2012/source-sdk-2012/source-sdk-android/bin/csgo-debug.apk