Update dependency ubuntu to v24 #368
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-24.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
with: | |
submodules: recursive | |
- name: Setup Java | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@db19848a5fa7950289d3668fb053140cf3028d43 # v3.3.2 | |
- name: Cache NDK | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.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 |