1
0
mirror of https://github.com/PurpleI2P/i2pd-android.git synced 2025-01-10 06:48:02 +00:00
i2pd-android/.github/workflows/android.yml

45 lines
1.1 KiB
YAML
Raw Normal View History

name: Android CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
2020-10-15 02:38:04 +00:00
submodules: 'recursive'
- name: Install rename tool
run: |
sudo apt-get update
sudo apt-get install -y g++ rename
2020-10-15 02:07:48 +00:00
- name: Setup JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Setup Android SDK
2020-10-15 02:38:04 +00:00
uses: maxim-lobanov/setup-android-tools@v1
with:
packages: |
build-tools;31.0.0
platforms;android-31
ndk;23.1.7779620
2020-10-15 02:38:04 +00:00
cache: true
- name: Build required modules
run: |
export ANDROID_SDK_ROOT=$ANDROID_HOME
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/23.1.7779620
pushd app/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 with Gradle
2020-10-15 02:38:04 +00:00
run: ./gradlew --no-daemon assembleDebug
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
path: app/build/outputs/apk/debug/*.apk