Skip to content

Update gradle/gradle-build-action action to v2.9.0 #190

Update gradle/gradle-build-action action to v2.9.0

Update gradle/gradle-build-action action to v2.9.0 #190

name: ExoPlayer FFmpeg Extension / Build
on:
push:
branches:
- master
pull_request:
env:
NDK_VER: 21.4.7075529
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
submodules: recursive
- name: Setup Java
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
distribution: temurin
java-version: 11
- name: Setup Gradle
uses: gradle/gradle-build-action@d1b726d8c1e0cc120447ad1a950d6e6794c51ad8 # v2.9.0
- name: Cache NDK
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.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_HOME}/tools/bin/sdkmanager --install "ndk;${NDK_VER}"
- name: Build ffmpeg
run: ./build.sh
- name: Build extension and publish library locally
run: ./gradlew :exoplayer-ffmpeg-extension:publishToMavenLocal