Skip to content

downgrade android java env #109

downgrade android java env

downgrade android java env #109

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-14
steps:
- uses: actions/checkout@v4
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
- uses: actions/setup-java@v4
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '8'
- run: java HelloWorldApp.java
- name: Build with Gradle
run: |
ls -l /Users/runner/work/iot-ijkplayer/iot-ijkplayer/android-ndk-r10e
perl -i -pe "s#.*HOST_ARCH=x86_64.*#\t\tx86_64|amd64|arm64) HOST_ARCH=x86_64;;#g" /Users/runner/work/iot-ijkplayer/iot-ijkplayer/android-ndk-r10e/ndk-build
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