Browse Source

[gha] add binary build

Signed-off-by: r4sas <r4sas@i2pmail.org>
pull/37/head
R4SAS 3 years ago
parent
commit
c345816030
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 39
      .github/workflows/android.yml
  2. 1
      app/build.gradle

39
.github/workflows/android.yml

@ -42,3 +42,42 @@ jobs: @@ -42,3 +42,42 @@ jobs:
with:
path: app/build/outputs/apk/debug/*.apk
build-binary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install rename tool
run: |
sudo apt-get update
sudo apt-get install -y g++ rename
- name: Setup JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Setup Android SDK
uses: maxim-lobanov/setup-android-tools@v1
with:
packages: |
ndk;23.1.7779620
cache: true
- name: Build required modules
run: |
export ANDROID_SDK_ROOT=$ANDROID_HOME
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/23.1.7779620
pushd binary/jni
sed -i -e 's/d+2/d+0/' boost/build-android.sh
./build_boost.sh
./build_openssl.sh
./build_miniupnpc.sh
popd
- name: Build binaries with NDK
run: |
pushd binary/jni
$ANDROID_NDK_HOME/ndk-build -j2 NDK_MODULE_PATH=$PWD
popd
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
path: binary/libs/*

1
app/build.gradle

@ -17,6 +17,7 @@ android { @@ -17,6 +17,7 @@ android {
versionCode 24100
versionName "2.41.0"
setProperty("archivesBaseName", archivesBaseName + "-" + versionName)
ndkVersion "23.1.7779620"
ndk {
abiFilters "armeabi-v7a"

Loading…
Cancel
Save