ffmpeg-kit/.github/workflows/android-build-scripts.yml

173 lines
5.7 KiB
YAML
Raw Normal View History

2021-08-14 22:01:11 +03:00
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/**'
2022-10-01 00:58:46 +03:00
- '!android/README.md'
- 'scripts/**'
- 'tools/**'
- 'android.sh'
2021-08-14 22:01:11 +03:00
jobs:
build-main-on-linux:
2021-08-15 01:07:35 +03:00
name: android main on linux
runs-on: ubuntu-20.04
2021-08-14 22:01:11 +03:00
strategy:
matrix:
2022-09-02 01:24:40 +03:00
ndk-version: [ 'r22b-linux-x86_64', 'r23b-linux', 'r24-linux', 'r25b-linux' ]
2021-08-14 22:01:11 +03:00
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: set up adopt jdk 11
uses: actions/setup-java@v3
2021-08-14 22:01:11 +03:00
with:
distribution: 'adopt'
java-version: '11'
2021-08-14 22:01:11 +03:00
- name: set up android ndk
run: |
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip
2021-08-15 01:07:35 +03:00
unzip -q -o ndk.zip -d .ndk
echo "ANDROID_NDK_ROOT=$PWD/.ndk/$(ls .ndk)" >> $GITHUB_ENV
2021-08-14 22:01:11 +03:00
- name: run the build script
2022-09-02 01:24:40 +03:00
run: ./android.sh -d --enable-android-media-codec --enable-android-zlib --disable-arm-v7a
2021-08-15 01:07:35 +03:00
- name: print build logs
if: ${{ always() }}
2021-08-14 22:01:11 +03:00
run: cat build.log
2021-08-15 01:07:35 +03:00
- name: print ffbuild logs
2021-08-14 22:01:11 +03:00
if: ${{ failure() }}
2021-08-15 01:07:35 +03:00
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
2021-08-14 22:01:11 +03:00
build-lts-on-linux:
2021-08-15 01:07:35 +03:00
name: android lts on linux
runs-on: ubuntu-20.04
2021-08-14 22:01:11 +03:00
strategy:
matrix:
2021-12-29 13:53:56 +02:00
ndk-version: [ 'r22b-linux-x86_64', 'r23b-linux' ]
2021-08-14 22:01:11 +03:00
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: set up adopt jdk 11
uses: actions/setup-java@v3
2021-08-14 22:01:11 +03:00
with:
distribution: 'adopt'
java-version: '11'
2021-08-14 22:01:11 +03:00
- name: set up android ndk
run: |
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip
2021-08-15 01:07:35 +03:00
unzip -q -o ndk.zip -d .ndk
echo "ANDROID_NDK_ROOT=$PWD/.ndk/$(ls .ndk)" >> $GITHUB_ENV
2021-08-14 22:01:11 +03:00
- name: run the build script
2021-08-15 01:07:35 +03:00
run: ./android.sh -d --lts --enable-android-media-codec --enable-android-zlib
- name: print build logs
if: ${{ always() }}
2021-08-14 22:01:11 +03:00
run: cat build.log
2021-08-15 01:07:35 +03:00
- name: print ffbuild logs
2021-08-14 22:01:11 +03:00
if: ${{ failure() }}
2021-08-15 01:07:35 +03:00
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
2021-08-14 22:01:11 +03:00
build-main-on-macos:
2021-08-15 01:07:35 +03:00
name: android main on macos
runs-on: macos-12
2021-08-14 22:01:11 +03:00
strategy:
matrix:
2022-09-02 01:24:40 +03:00
ndk-version: [ 'r22b-darwin-x86_64', 'r23b-darwin', 'r24-darwin', 'r25b-darwin' ]
2021-08-14 22:01:11 +03:00
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: set up adopt jdk 11
uses: actions/setup-java@v3
2021-08-14 22:01:11 +03:00
with:
distribution: 'adopt'
java-version: '11'
2021-08-14 22:01:11 +03:00
- name: set up android ndk
run: |
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip
2021-08-15 01:07:35 +03:00
unzip -q -o ndk.zip -d .ndk
echo "ANDROID_NDK_ROOT=$PWD/.ndk/$(ls .ndk)" >> $GITHUB_ENV
2021-08-14 22:01:11 +03:00
- name: run the build script
2022-09-02 01:24:40 +03:00
run: ./android.sh -d --enable-android-media-codec --enable-android-zlib --disable-arm-v7a
2021-08-15 01:07:35 +03:00
- name: print build logs
if: ${{ always() }}
2021-08-14 22:01:11 +03:00
run: cat build.log
2021-08-15 01:07:35 +03:00
- name: print ffbuild logs
2021-08-14 22:01:11 +03:00
if: ${{ failure() }}
2021-08-15 01:07:35 +03:00
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
2021-08-14 22:01:11 +03:00
build-lts-on-macos:
2021-08-15 01:07:35 +03:00
name: android lts on macos
runs-on: macos-11
2021-08-14 22:01:11 +03:00
strategy:
matrix:
2021-12-29 13:53:56 +02:00
ndk-version: [ 'r22b-darwin-x86_64', 'r23b-darwin' ]
2021-08-14 22:01:11 +03:00
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: set up adopt jdk 11
uses: actions/setup-java@v3
2021-08-14 22:01:11 +03:00
with:
distribution: 'adopt'
java-version: '11'
2021-08-14 22:01:11 +03:00
- name: set up android ndk
run: |
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip
2021-08-15 01:07:35 +03:00
unzip -q -o ndk.zip -d .ndk
echo "ANDROID_NDK_ROOT=$PWD/.ndk/$(ls .ndk)" >> $GITHUB_ENV
2021-08-14 22:01:11 +03:00
- name: run the build script
2021-08-15 01:07:35 +03:00
run: ./android.sh -d --lts --enable-android-media-codec --enable-android-zlib
- name: print build logs
if: ${{ always() }}
2021-08-14 22:01:11 +03:00
run: cat build.log
2021-08-15 01:07:35 +03:00
- name: print ffbuild logs
2021-08-14 22:01:11 +03:00
if: ${{ failure() }}
2021-08-15 01:07:35 +03:00
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
2022-10-01 00:58:46 +03:00
- name: set up adopt jdk 11
uses: actions/setup-java@v3
with:
distribution: 'adopt'
2022-10-01 00:58:46 +03:00
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'