fix weekly builds #157
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: android nightly builds | |
on: | |
push: | |
branches: | |
- github-actions-fix | |
jobs: | |
build-android-main-on-linux: | |
name: android main on linux | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
ndk-version: [ 'r22b-linux-x86_64' ] | |
branches: [ 'github-actions-fix' ] | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ matrix.branches }} | |
- name: set up adopt jdk 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: '17' | |
- name: prerequisites | |
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 binutils | |
- name: prerequisites 2 | |
run: ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --uninstall "cmake;3.10.2.4988404" "cmake;3.18.1" | |
- name: upgrade meson | |
run: pip install meson --upgrade | |
- 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 --enable-lame | |
- 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-22.04 | |
strategy: | |
matrix: | |
ndk-version: [ 'r22b-linux-x86_64' ] | |
branches: [ 'github-actions-fix' ] | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ matrix.branches }} | |
- name: set up adopt jdk 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: '17' | |
- name: prerequisites | |
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 binutils | |
- name: prerequisites 2 | |
run: ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --uninstall "cmake;3.10.2.4988404" "cmake;3.18.1" | |
- name: upgrade meson | |
run: pip install meson --upgrade | |
- 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 --enable-lame | |
- 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' |