Bump fuzztest library. #2418
Workflow file for this run
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: CI Android JNI | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
# Cancel the workflow if a new one is triggered from the same PR, branch, or tag, except on main. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
build-android-jni: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Download and Setup the Android NDK | |
uses: nttld/setup-ndk@6a7e9c5494a25c4842ca1011f710300132eacd94 # v1.4.2 | |
id: setup-ndk | |
with: | |
# r25c is the same as 25.2.9519653. | |
ndk-version: r25c | |
add-to-path: false | |
- name: Setup ninja | |
uses: seanmiddleditch/gha-setup-ninja@8b297075da4cd2a5f1fd21fe011b499edf06e9d2 # v4 | |
- name: Setup cmake | |
uses: jwlawson/actions-setup-cmake@d06b37b47cfd043ec794ffa3e40e0b6b5858a7ec # v1.14.2 | |
with: | |
cmake-version: "3.19.x" | |
- name: Setup python | |
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 | |
with: | |
python-version: '3.x' | |
- name: Setup meson | |
run: pip install meson | |
- name: Setup nasm | |
uses: ilammy/setup-nasm@13cbeb366c45c4379d3478cdcbadd8295feb5028 # v1.5.1 | |
- name: Build dav1d with the Android NDK | |
working-directory: ext | |
run: bash dav1d_android.sh ${{ steps.setup-ndk.outputs.ndk-path }} | |
- name: Build libyuv with the Android NDK | |
working-directory: ext | |
run: bash libyuv_android.sh ${{ steps.setup-ndk.outputs.ndk-path }} | |
- name: Setup JDK | |
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0 | |
with: | |
distribution: "zulu" | |
java-version: 17 | |
- name: Download and Setup the Android SDK | |
uses: android-actions/setup-android@07976c6290703d34c16d382cb36445f98bb43b1f # v3.2.0 | |
- name: Install CMake in the Android SDK | |
# This is the same version of cmake that is found in build.gradle. This | |
# will be used to build libavif and the JNI bindings. | |
run: sdkmanager "cmake;3.22.1" | |
- name: Build the libavif JNI Wrapper | |
working-directory: android_jni | |
run: ./gradlew --no-daemon assembleRelease | |
env: | |
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} |