From e69bed900bcc38b4ecb46eec67cb42071435dbd1 Mon Sep 17 00:00:00 2001 From: Taner Sener Date: Fri, 31 Dec 2021 21:52:22 +0000 Subject: [PATCH 1/3] enable nightly builds --- .github/workflows/nightly-builds-android.yml | 71 +++++++++ .github/workflows/nightly-builds-apple.yml | 151 +++++++++++++++++++ 2 files changed, 222 insertions(+) create mode 100644 .github/workflows/nightly-builds-android.yml create mode 100644 .github/workflows/nightly-builds-apple.yml diff --git a/.github/workflows/nightly-builds-android.yml b/.github/workflows/nightly-builds-android.yml new file mode 100644 index 0000000..2a90613 --- /dev/null +++ b/.github/workflows/nightly-builds-android.yml @@ -0,0 +1,71 @@ +name: nightly builds + +on: + schedule: + - cron: '0 4 * * *' + +jobs: + build-android-main-on-linux: + name: android main on linux + runs-on: ubuntu-20.04 + strategy: + matrix: + ndk-version: [ 'r23b-linux' ] + branches: [ 'main', 'development' ] + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ matrix.branches }} + - name: set up adopt jdk 8 + uses: actions/setup-java@v2.2.0 + with: + distribution: 'adopt' + java-version: '8' + - 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 --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' + build-android-lts-on-linux: + name: android lts on linux + runs-on: ubuntu-20.04 + strategy: + matrix: + ndk-version: [ 'r23b-linux' ] + branches: [ 'main', 'development' ] + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ matrix.branches }} + - name: set up adopt jdk 8 + uses: actions/setup-java@v2.2.0 + with: + distribution: 'adopt' + java-version: '8' + - 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' diff --git a/.github/workflows/nightly-builds-apple.yml b/.github/workflows/nightly-builds-apple.yml new file mode 100644 index 0000000..f127218 --- /dev/null +++ b/.github/workflows/nightly-builds-apple.yml @@ -0,0 +1,151 @@ +name: apple nightly builds + +on: + schedule: + - cron: '0 2 * * *' + +jobs: + build-ios-main-on-macos-bigsur: + name: ios main on big sur + runs-on: macos-11 + strategy: + matrix: + xcode: [ '13.2.1' ] + branches: [ 'main', 'development' ] + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ matrix.branches }} + - name: set up xcode + run: echo "export DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" > ~/.xcode.for.ffmpeg.kit.sh + - name: run the build script + run: ./ios.sh -x --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' + build-ios-lts-on-macos-catalina: + name: ios lts on catalina + runs-on: macos-10.15 + strategy: + matrix: + xcode: [ '12.4' ] + branches: [ 'main', 'development' ] + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ matrix.branches }} + - name: set up xcode + run: echo "export DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" > ~/.xcode.for.ffmpeg.kit.sh + - name: run the build script + run: ./ios.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' + build-macos-main-on-macos-bigsur: + name: macos main on big sur + runs-on: macos-11 + strategy: + matrix: + xcode: [ '13.2.1' ] + branches: [ 'main', 'development' ] + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ matrix.branches }} + - name: set up xcode + run: echo "export DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" > ~/.xcode.for.ffmpeg.kit.sh + - name: run the build script + run: ./macos.sh -x --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' + build-macos-lts-on-macos-catalina: + name: macos lts on catalina + runs-on: macos-10.15 + strategy: + matrix: + xcode: [ '12.4' ] + branches: [ 'main', 'development' ] + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ matrix.branches }} + - name: set up xcode + run: echo "export DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" > ~/.xcode.for.ffmpeg.kit.sh + - name: run the build script + run: ./macos.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' + build-tvos-main-on-macos-bigsur: + name: tvos main on big sur + runs-on: macos-11 + strategy: + matrix: + xcode: [ '13.2.1' ] + branches: [ 'main', 'development' ] + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ matrix.branches }} + - name: set up xcode + run: echo "export DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" > ~/.xcode.for.ffmpeg.kit.sh + - name: run the build script + run: ./tvos.sh -x --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' + build-tvos-lts-on-macos-catalina: + name: tvos lts on catalina + runs-on: macos-10.15 + strategy: + matrix: + xcode: [ '12.4' ] + branches: [ 'main', 'development' ] + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ matrix.branches }} + - name: set up xcode + run: echo "export DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" > ~/.xcode.for.ffmpeg.kit.sh + - name: run the build script + run: ./tvos.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' From c672cf94809c6df5403f511b732925e0ee2bec97 Mon Sep 17 00:00:00 2001 From: Taner Sener Date: Fri, 31 Dec 2021 23:38:55 +0000 Subject: [PATCH 2/3] depend on android ndk 22.1.7171670, fixes #292 --- android/ffmpeg-kit-android-lib/build.gradle | 2 +- tools/release/android/build.gradle | 2 +- tools/release/android/build.lts.gradle | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/android/ffmpeg-kit-android-lib/build.gradle b/android/ffmpeg-kit-android-lib/build.gradle index 927cf4a..e4d6233 100644 --- a/android/ffmpeg-kit-android-lib/build.gradle +++ b/android/ffmpeg-kit-android-lib/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' android { compileSdkVersion 30 - ndkVersion "23.1.7779620" + ndkVersion "22.1.7171670" defaultConfig { minSdkVersion 24 diff --git a/tools/release/android/build.gradle b/tools/release/android/build.gradle index 927cf4a..e4d6233 100644 --- a/tools/release/android/build.gradle +++ b/tools/release/android/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' android { compileSdkVersion 30 - ndkVersion "23.1.7779620" + ndkVersion "22.1.7171670" defaultConfig { minSdkVersion 24 diff --git a/tools/release/android/build.lts.gradle b/tools/release/android/build.lts.gradle index e916858..f07b75d 100644 --- a/tools/release/android/build.lts.gradle +++ b/tools/release/android/build.lts.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' android { compileSdkVersion 30 - ndkVersion "23.1.7779620" + ndkVersion "22.1.7171670" defaultConfig { minSdkVersion 16 From 868f83d31dcea5ad1e56c524eb104f94520454e6 Mon Sep 17 00:00:00 2001 From: Taner Sener Date: Sun, 2 Jan 2022 00:08:46 +0000 Subject: [PATCH 3/3] reschedule nightly builds --- .github/workflows/nightly-builds-android.yml | 2 +- .github/workflows/nightly-builds-apple.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly-builds-android.yml b/.github/workflows/nightly-builds-android.yml index 2a90613..7e7d844 100644 --- a/.github/workflows/nightly-builds-android.yml +++ b/.github/workflows/nightly-builds-android.yml @@ -2,7 +2,7 @@ name: nightly builds on: schedule: - - cron: '0 4 * * *' + - cron: '0 5 * * *' jobs: build-android-main-on-linux: diff --git a/.github/workflows/nightly-builds-apple.yml b/.github/workflows/nightly-builds-apple.yml index f127218..f84040f 100644 --- a/.github/workflows/nightly-builds-apple.yml +++ b/.github/workflows/nightly-builds-apple.yml @@ -2,7 +2,7 @@ name: apple nightly builds on: schedule: - - cron: '0 2 * * *' + - cron: '0 3 * * *' jobs: build-ios-main-on-macos-bigsur: