2022-01-03 11:45:25 +02:00
|
|
|
name: android nightly builds
|
2021-12-31 23:52:22 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2022-01-10 11:08:08 +02:00
|
|
|
- cron: '0 3 * * 0'
|
2021-12-31 23:52:22 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-android-main-on-linux:
|
|
|
|
name: android main on linux
|
2023-08-23 11:17:07 +03:00
|
|
|
runs-on: ubuntu-22.04
|
2021-12-31 23:52:22 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-09-02 01:24:40 +03:00
|
|
|
ndk-version: [ 'r22b-linux-x86_64', 'r23b-linux', 'r24-linux', 'r25b-linux' ]
|
2021-12-31 23:52:22 +02:00
|
|
|
branches: [ 'main', 'development' ]
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
steps:
|
2024-04-19 00:58:27 +03:00
|
|
|
- uses: actions/checkout@v4
|
2021-12-31 23:52:22 +02:00
|
|
|
with:
|
|
|
|
ref: ${{ matrix.branches }}
|
2023-08-23 11:17:07 +03:00
|
|
|
- name: set up adopt jdk 17
|
2022-09-18 00:10:54 +03:00
|
|
|
uses: actions/setup-java@v3
|
2021-12-31 23:52:22 +02:00
|
|
|
with:
|
|
|
|
distribution: 'adopt'
|
2023-08-23 11:17:07 +03:00
|
|
|
java-version: '17'
|
2022-01-03 11:45:25 +02:00
|
|
|
- name: prerequisites
|
2023-09-10 01:24:01 +03:00
|
|
|
run: sudo apt-get install autoconf automake libtool pkg-config curl git doxygen nasm cmake gcc gperf texinfo yasm bison autogen wget autopoint meson ninja-build ragel groff gtk-doc-tools libtasn1-bin
|
2023-09-19 10:44:22 +03:00
|
|
|
- name: prerequisites 2
|
|
|
|
run: ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --uninstall "cmake;3.10.2.4988404" "cmake;3.18.1"
|
2022-01-03 11:45:25 +02:00
|
|
|
- name: upgrade meson
|
|
|
|
run: pip install meson --upgrade
|
2021-12-31 23:52:22 +02:00
|
|
|
- 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
|
2022-09-02 01:24:40 +03:00
|
|
|
run: ./android.sh --full --enable-gpl --disable-lib-srt --disable-arm-v7a
|
2021-12-31 23:52:22 +02:00
|
|
|
- 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-android-lts-on-linux:
|
|
|
|
name: android lts on linux
|
2023-08-23 11:17:07 +03:00
|
|
|
runs-on: ubuntu-22.04
|
2021-12-31 23:52:22 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-01-03 11:45:25 +02:00
|
|
|
ndk-version: [ 'r22b-linux-x86_64', 'r23b-linux' ]
|
2021-12-31 23:52:22 +02:00
|
|
|
branches: [ 'main', 'development' ]
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
steps:
|
2024-04-19 00:58:27 +03:00
|
|
|
- uses: actions/checkout@v4
|
2021-12-31 23:52:22 +02:00
|
|
|
with:
|
|
|
|
ref: ${{ matrix.branches }}
|
2023-08-23 11:17:07 +03:00
|
|
|
- name: set up adopt jdk 17
|
2022-09-18 00:10:54 +03:00
|
|
|
uses: actions/setup-java@v3
|
2021-12-31 23:52:22 +02:00
|
|
|
with:
|
|
|
|
distribution: 'adopt'
|
2023-08-23 11:17:07 +03:00
|
|
|
java-version: '17'
|
2022-01-03 11:45:25 +02:00
|
|
|
- name: prerequisites
|
2023-09-10 01:24:01 +03:00
|
|
|
run: sudo apt-get install autoconf automake libtool pkg-config curl git doxygen nasm cmake gcc gperf texinfo yasm bison autogen wget autopoint meson ninja-build ragel groff gtk-doc-tools libtasn1-bin
|
2023-09-19 10:44:22 +03:00
|
|
|
- name: prerequisites 2
|
|
|
|
run: ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --uninstall "cmake;3.10.2.4988404" "cmake;3.18.1"
|
2022-01-03 11:45:25 +02:00
|
|
|
- name: upgrade meson
|
|
|
|
run: pip install meson --upgrade
|
2021-12-31 23:52:22 +02:00
|
|
|
- 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 -l --full --enable-gpl --disable-lib-srt
|
|
|
|
- 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'
|