-
Notifications
You must be signed in to change notification settings - Fork 10
46 lines (42 loc) · 1.45 KB
/
android_debug_push.yml
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
37
38
39
40
41
42
43
44
45
46
name: IOT IJK ANDROID DEBUG CI
on:
push:
tags-ignore:
- '*'
branches:
- '*'
pull_request:
branches: [ master ]
env:
IOT_SONATYPE_USERNAME: ${{ secrets.IOT_SONATYPE_USERNAME }}
IOT_SONATYPE_PASSWORD: ${{ secrets.IOT_SONATYPE_PASSWORD }}
GPG_DECRYPT_PASSPHRASE: ${{ secrets.GPG_DECRYPT_PASSPHRASE }}
jobs:
build:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Download r10e NDK
run: |
wget https://dl.google.com/android/repository/android-ndk-r10e-darwin-x86_64.zip
unzip android-ndk-r10e-darwin-x86_64.zip
- name: Update SDK Version
run: bash .github/script/updateVersionForSnapshot.sh
- name: Build with Gradle
run: |
ls -l /Users/runner/work/iot-ijkplayer/iot-ijkplayer/android-ndk-r10e
export ANDROID_NDK=/Users/runner/work/iot-ijkplayer/iot-ijkplayer/android-ndk-r10e
export ANDROID_NDK_ROOT=/Users/runner/work/iot-ijkplayer/iot-ijkplayer/android-ndk-r10e
sh .github/script/build_armv7a.sh
cd android/ijkplayer
./gradlew :ijkplayer-armv7a:assemble
./gradlew :ijkplayer-arm64:assemble
./gradlew :ijkplayer-java:assemble
- name: Publish aar to Maven
run: |
cd android/ijkplayer
./gradlew :ijkplayer-armv7a:publish
./gradlew :ijkplayer-arm64:publish
./gradlew :ijkplayer-java:publish