mirror of
https://github.com/PurpleI2P/i2pd-android.git
synced 2025-02-03 10:26:01 +00:00
[workflow] use other action for sdk
This commit is contained in:
parent
edc7d5e5a0
commit
a99989f29d
21
.github/workflows/android.yml
vendored
21
.github/workflows/android.yml
vendored
@ -7,24 +7,31 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
with:
|
with:
|
||||||
path: app/build/outputs/apk/debug/*.apk
|
submodules: 'recursive'
|
||||||
- name: Setup JDK 1.8
|
- name: Setup JDK 1.8
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: 1.8
|
||||||
|
|
||||||
- name: Setup Android SDK
|
- name: Setup Android SDK
|
||||||
uses: android-actions/setup-android@v2
|
uses: maxim-lobanov/setup-android-tools@v1
|
||||||
|
with:
|
||||||
|
packages: |
|
||||||
|
tools
|
||||||
|
platform-tools
|
||||||
|
build-tools-28.0.3
|
||||||
|
android-29
|
||||||
|
cache: true
|
||||||
- name: Setup Android NDK
|
- name: Setup Android NDK
|
||||||
run: |
|
run: |
|
||||||
export NDK_VERSION=r19c
|
export NDK_VERSION=r19c
|
||||||
curl -L https://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-linux-x86_64.zip -O
|
curl -L https://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-linux-x86_64.zip -O
|
||||||
unzip -q android-ndk-${NDK_VERSION}-linux-x86_64.zip
|
unzip -q android-ndk-${NDK_VERSION}-linux-x86_64.zip
|
||||||
export ANDROID_NDK_HOME=`pwd`/android-ndk-${NDK_VERSION}
|
export ANDROID_NDK_HOME=`pwd`/android-ndk-${NDK_VERSION}
|
||||||
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew assembleDebug
|
run: ./gradlew --no-daemon assembleDebug
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
path: app/build/outputs/apk/debug/*.apk
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user