99 lines
3.3 KiB
YAML
99 lines
3.3 KiB
YAML
name: ios build scripts
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- development
|
|
- main
|
|
paths:
|
|
- '.github/workflows/ios-build-scripts.yml'
|
|
- 'apple/**'
|
|
- '!apple/README.md'
|
|
- 'scripts/**'
|
|
- 'tools/**'
|
|
- 'apple.sh'
|
|
- 'ios.sh'
|
|
pull_request:
|
|
branches:
|
|
- development
|
|
- main
|
|
paths:
|
|
- '.github/workflows/ios-build-scripts.yml'
|
|
- 'apple/**'
|
|
- '!apple/README.md'
|
|
- 'scripts/**'
|
|
- 'tools/**'
|
|
- 'apple.sh'
|
|
- 'ios.sh'
|
|
|
|
jobs:
|
|
build-main-on-macos-monterey:
|
|
name: ios main on monterey
|
|
runs-on: macos-12
|
|
strategy:
|
|
matrix:
|
|
xcode: [ '13.4.1', '14.0.1' ]
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: prerequisites
|
|
run: brew install autoconf automake libtool pkg-config curl git cmake nasm
|
|
- 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 --xcframework --enable-ios-audiotoolbox --enable-ios-avfoundation --enable-ios-bzip2 --enable-ios-libiconv --enable-ios-videotoolbox --enable-ios-zlib
|
|
- 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-main-on-macos-bigsur:
|
|
name: ios main on big sur
|
|
runs-on: macos-11
|
|
strategy:
|
|
matrix:
|
|
xcode: [ '12.5.1', '13.2.1' ]
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: prerequisites
|
|
run: brew install autoconf automake libtool pkg-config curl git cmake nasm
|
|
- 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 --xcframework --enable-ios-audiotoolbox --enable-ios-avfoundation --enable-ios-bzip2 --enable-ios-libiconv --enable-ios-videotoolbox --enable-ios-zlib
|
|
- 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-lts-on-macos-bigsur:
|
|
name: ios lts on big sur
|
|
runs-on: macos-11
|
|
strategy:
|
|
matrix:
|
|
xcode: [ '11.7', '12.4' ]
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: prerequisites
|
|
run: brew install autoconf automake libtool pkg-config curl git cmake nasm
|
|
- 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 --lts --enable-ios-audiotoolbox --enable-ios-bzip2 --enable-ios-libiconv --enable-ios-zlib
|
|
- 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'
|