Skip to content

Update CI dependencies #384

Update CI dependencies

Update CI dependencies #384

name: AndroidX Media3 FFmpeg Decoder / Build
on:
push:
branches:
- master
pull_request:
env:
NDK_VER: 26.1.10909125
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: recursive
- name: Setup Java
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@473878a77f1b98e2b5ac4af93489d1656a80a5ed # v4.2.0
- name: Cache NDK
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: /usr/local/lib/android/sdk/ndk/${{ env.NDK_VER }}
key: ${{ runner.os }}-${{ env.NDK_VER }}
- name: Install correct NDK
run: sudo ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "ndk;${NDK_VER}"
- name: Build ffmpeg
run: ./build.sh
- name: Build extension and publish library locally
run: ./gradlew :media3-ffmpeg-decoder:publishToMavenLocal