|
|
|
@ -4,12 +4,11 @@ on: [ push, pull_request ] |
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
|
build-main-on-linux: |
|
|
|
|
name: android main |
|
|
|
|
runs-on: ${{ matrix.os }} |
|
|
|
|
name: android main on linux |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
strategy: |
|
|
|
|
matrix: |
|
|
|
|
os: [ ubuntu-20.04 ] |
|
|
|
|
ndk-version: [ 'r22-linux-x86_64', 'r22b-linux-x86_64', 'r23-linux' ] |
|
|
|
|
ndk-version: [ 'r21e-linux-x86_64', 'r22b-linux-x86_64', 'r23-linux' ] |
|
|
|
|
defaults: |
|
|
|
|
run: |
|
|
|
|
shell: bash |
|
|
|
@ -23,28 +22,22 @@ jobs: |
|
|
|
|
- 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.dir |
|
|
|
|
DIR=$(ls .ndk.dir) |
|
|
|
|
mv .ndk.dir/$DIR ~/.ndk |
|
|
|
|
env: |
|
|
|
|
ANDROID_NDK_ROOT: ~/.ndk |
|
|
|
|
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 --disable-arm-v7a --disable-arm-v7a-neon --disable-arm64-v8a |
|
|
|
|
- name: print success logs |
|
|
|
|
if: ${{ success() }} |
|
|
|
|
run: ./android.sh -d --enable-android-media-codec --enable-android-zlib |
|
|
|
|
- name: print build logs |
|
|
|
|
if: ${{ always() }} |
|
|
|
|
run: cat build.log |
|
|
|
|
- name: print failure logs |
|
|
|
|
- name: print ffbuild logs |
|
|
|
|
if: ${{ failure() }} |
|
|
|
|
run: | |
|
|
|
|
tail -50 build.log |
|
|
|
|
tail -50 ./src/ffmpeg/ffbuild/config.log |
|
|
|
|
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log' |
|
|
|
|
build-lts-on-linux: |
|
|
|
|
name: android lts |
|
|
|
|
runs-on: ${{ matrix.os }} |
|
|
|
|
name: android lts on linux |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
strategy: |
|
|
|
|
matrix: |
|
|
|
|
os: [ ubuntu-20.04 ] |
|
|
|
|
ndk-version: [ 'r22-linux-x86_64', 'r22b-linux-x86_64', 'r23-linux' ] |
|
|
|
|
ndk-version: [ 'r21e-linux-x86_64', 'r22b-linux-x86_64', 'r23-linux' ] |
|
|
|
|
defaults: |
|
|
|
|
run: |
|
|
|
|
shell: bash |
|
|
|
@ -58,28 +51,22 @@ jobs: |
|
|
|
|
- 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.dir |
|
|
|
|
DIR=$(ls .ndk.dir) |
|
|
|
|
mv .ndk.dir/$DIR ~/.ndk |
|
|
|
|
env: |
|
|
|
|
ANDROID_NDK_ROOT: ~/.ndk |
|
|
|
|
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 -l --disable-arm-v7a --disable-arm-v7a-neon --disable-arm64-v8a |
|
|
|
|
- name: print success logs |
|
|
|
|
if: ${{ success() }} |
|
|
|
|
run: ./android.sh -d --lts --enable-android-media-codec --enable-android-zlib |
|
|
|
|
- name: print build logs |
|
|
|
|
if: ${{ always() }} |
|
|
|
|
run: cat build.log |
|
|
|
|
- name: print failure logs |
|
|
|
|
- name: print ffbuild logs |
|
|
|
|
if: ${{ failure() }} |
|
|
|
|
run: | |
|
|
|
|
tail -50 build.log |
|
|
|
|
tail -50 ./src/ffmpeg/ffbuild/config.log |
|
|
|
|
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log' |
|
|
|
|
build-main-on-macos: |
|
|
|
|
name: android main |
|
|
|
|
runs-on: ${{ matrix.os }} |
|
|
|
|
name: android main on macos |
|
|
|
|
runs-on: macos-10.15 |
|
|
|
|
strategy: |
|
|
|
|
matrix: |
|
|
|
|
os: [ macos-10.15 ] |
|
|
|
|
ndk-url: [ 'r22-darwin-x86_64', 'r22b-darwin-x86_64', 'r23-darwin' ] |
|
|
|
|
ndk-version: [ 'r21e-darwin-x86_64', 'r22b-darwin-x86_64', 'r23-darwin' ] |
|
|
|
|
defaults: |
|
|
|
|
run: |
|
|
|
|
shell: bash |
|
|
|
@ -93,28 +80,22 @@ jobs: |
|
|
|
|
- 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.dir |
|
|
|
|
DIR=$(ls .ndk.dir) |
|
|
|
|
mv .ndk.dir/$DIR ~/.ndk |
|
|
|
|
env: |
|
|
|
|
ANDROID_NDK_ROOT: ~/.ndk |
|
|
|
|
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 --disable-arm-v7a --disable-arm-v7a-neon --disable-arm64-v8a |
|
|
|
|
- name: print success logs |
|
|
|
|
if: ${{ success() }} |
|
|
|
|
run: ./android.sh -d --enable-android-media-codec --enable-android-zlib |
|
|
|
|
- name: print build logs |
|
|
|
|
if: ${{ always() }} |
|
|
|
|
run: cat build.log |
|
|
|
|
- name: print failure logs |
|
|
|
|
- name: print ffbuild logs |
|
|
|
|
if: ${{ failure() }} |
|
|
|
|
run: | |
|
|
|
|
tail -50 build.log |
|
|
|
|
tail -50 ./src/ffmpeg/ffbuild/config.log |
|
|
|
|
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log' |
|
|
|
|
build-lts-on-macos: |
|
|
|
|
name: android lts |
|
|
|
|
runs-on: ${{ matrix.os }} |
|
|
|
|
name: android lts on macos |
|
|
|
|
runs-on: macos-10.15 |
|
|
|
|
strategy: |
|
|
|
|
matrix: |
|
|
|
|
os: [ macos-10.15 ] |
|
|
|
|
ndk-url: [ 'r22-darwin-x86_64', 'r22b-darwin-x86_64', 'r23-darwin' ] |
|
|
|
|
ndk-version: [ 'r21e-darwin-x86_64', 'r22b-darwin-x86_64', 'r23-darwin' ] |
|
|
|
|
defaults: |
|
|
|
|
run: |
|
|
|
|
shell: bash |
|
|
|
@ -128,18 +109,13 @@ jobs: |
|
|
|
|
- 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.dir |
|
|
|
|
DIR=$(ls .ndk.dir) |
|
|
|
|
mv .ndk.dir/$DIR ~/.ndk |
|
|
|
|
env: |
|
|
|
|
ANDROID_NDK_ROOT: ~/.ndk |
|
|
|
|
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 -l --disable-arm-v7a --disable-arm-v7a-neon --disable-arm64-v8a |
|
|
|
|
- name: print success logs |
|
|
|
|
if: ${{ success() }} |
|
|
|
|
run: ./android.sh -d --lts --enable-android-media-codec --enable-android-zlib |
|
|
|
|
- name: print build logs |
|
|
|
|
if: ${{ always() }} |
|
|
|
|
run: cat build.log |
|
|
|
|
- name: print failure logs |
|
|
|
|
- name: print ffbuild logs |
|
|
|
|
if: ${{ failure() }} |
|
|
|
|
run: | |
|
|
|
|
tail -50 build.log |
|
|
|
|
tail -50 ./src/ffmpeg/ffbuild/config.log |
|
|
|
|
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log' |
|
|
|
|