173 lines
5.7 KiB
YAML
173 lines
5.7 KiB
YAML
name: android build scripts
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- development
|
|
- main
|
|
paths:
|
|
- '.github/workflows/android-build-scripts.yml'
|
|
- 'android/**'
|
|
- '!android/README.md'
|
|
- 'scripts/**'
|
|
- 'tools/**'
|
|
- 'android.sh'
|
|
pull_request:
|
|
branches:
|
|
- development
|
|
- main
|
|
paths:
|
|
- '.github/workflows/android-build-scripts.yml'
|
|
- 'android/**'
|
|
- '!android/README.md'
|
|
- 'scripts/**'
|
|
- 'tools/**'
|
|
- 'android.sh'
|
|
|
|
jobs:
|
|
build-main-on-linux:
|
|
name: android main on linux
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
matrix:
|
|
ndk-version: [ 'r22b-linux-x86_64', 'r23b-linux', 'r24-linux', 'r25b-linux' ]
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: set up adopt jdk 11
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
- name: set up android ndk
|
|
run: |
|
|
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip
|
|
unzip -q -o ndk.zip -d .ndk
|
|
echo "ANDROID_NDK_ROOT=$PWD/.ndk/$(ls .ndk)" >> $GITHUB_ENV
|
|
- name: run the build script
|
|
run: ./android.sh -d --enable-android-media-codec --enable-android-zlib --disable-arm-v7a
|
|
- name: print build logs
|
|
if: ${{ always() }}
|
|
run: cat build.log
|
|
- name: print ffbuild logs
|
|
if: ${{ failure() }}
|
|
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
|
|
build-lts-on-linux:
|
|
name: android lts on linux
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
matrix:
|
|
ndk-version: [ 'r22b-linux-x86_64', 'r23b-linux' ]
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: set up adopt jdk 11
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
- name: set up android ndk
|
|
run: |
|
|
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip
|
|
unzip -q -o ndk.zip -d .ndk
|
|
echo "ANDROID_NDK_ROOT=$PWD/.ndk/$(ls .ndk)" >> $GITHUB_ENV
|
|
- name: run the build script
|
|
run: ./android.sh -d --lts --enable-android-media-codec --enable-android-zlib
|
|
- name: print build logs
|
|
if: ${{ always() }}
|
|
run: cat build.log
|
|
- name: print ffbuild logs
|
|
if: ${{ failure() }}
|
|
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
|
|
build-main-on-macos:
|
|
name: android main on macos
|
|
runs-on: macos-12
|
|
strategy:
|
|
matrix:
|
|
ndk-version: [ 'r22b-darwin-x86_64', 'r23b-darwin', 'r24-darwin', 'r25b-darwin' ]
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: set up adopt jdk 11
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
- name: set up android ndk
|
|
run: |
|
|
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip
|
|
unzip -q -o ndk.zip -d .ndk
|
|
echo "ANDROID_NDK_ROOT=$PWD/.ndk/$(ls .ndk)" >> $GITHUB_ENV
|
|
- name: run the build script
|
|
run: ./android.sh -d --enable-android-media-codec --enable-android-zlib --disable-arm-v7a
|
|
- name: print build logs
|
|
if: ${{ always() }}
|
|
run: cat build.log
|
|
- name: print ffbuild logs
|
|
if: ${{ failure() }}
|
|
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
|
|
build-lts-on-macos:
|
|
name: android lts on macos
|
|
runs-on: macos-11
|
|
strategy:
|
|
matrix:
|
|
ndk-version: [ 'r22b-darwin-x86_64', 'r23b-darwin' ]
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: set up adopt jdk 11
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
- name: set up android ndk
|
|
run: |
|
|
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip
|
|
unzip -q -o ndk.zip -d .ndk
|
|
echo "ANDROID_NDK_ROOT=$PWD/.ndk/$(ls .ndk)" >> $GITHUB_ENV
|
|
- name: run the build script
|
|
run: ./android.sh -d --lts --enable-android-media-codec --enable-android-zlib
|
|
- name: print build logs
|
|
if: ${{ always() }}
|
|
run: cat build.log
|
|
- name: print ffbuild logs
|
|
if: ${{ failure() }}
|
|
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
|
|
build-main-without-ffmpeg-kit-protocols-on-linux:
|
|
name: build without ffmpeg-kit protocols
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
matrix:
|
|
ndk-version: [ 'r22b-linux-x86_64' ]
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: set up adopt jdk 11
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
- name: set up android ndk
|
|
run: |
|
|
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip
|
|
unzip -q -o ndk.zip -d .ndk
|
|
echo "ANDROID_NDK_ROOT=$PWD/.ndk/$(ls .ndk)" >> $GITHUB_ENV
|
|
- name: run the build script
|
|
run: ./android.sh --no-ffmpeg-kit-protocols --disable-x86 --disable-x86-64 --disable-arm-v7a --disable-arm-v7a-neon
|
|
- name: print build logs
|
|
if: ${{ always() }}
|
|
run: cat build.log
|
|
- name: print ffbuild logs
|
|
if: ${{ failure() }}
|
|
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
|