Skip to content

fix(build): pass max-page-size=16384 to FFmpeg's configure too (U12 s… #9

fix(build): pass max-page-size=16384 to FFmpeg's configure too (U12 s…

fix(build): pass max-page-size=16384 to FFmpeg's configure too (U12 s… #9

Workflow file for this run

name: ios build
on:
workflow_dispatch:
push:
tags:
- '*'
jobs:
build-ios-main-on-macos:
name: ios main
runs-on: macos-15
strategy:
matrix:
xcode: [ '16.3' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v6
- name: prerequisites
run: brew install autoconf automake libtool pkg-config curl git doxygen nasm cmake gcc gperf texinfo yasm bison autogen wget gettext meson ninja ragel groff gtk-doc libtasn1 --overwrite
- 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
# --disable-lib-libaom (U13) + --disable-lib-sdl (U14)
# + --disable-lib-libvpx (U17): defensive. iOS doesn't currently
# enable these (no --full), but the constraints travel with the
# workflow if it ever switches to --full. libxml2 (U18) is an
# NDK-r27-Android-only collision; iOS uses Xcode toolchain and
# isn't affected.
run: PATH="/usr/local/opt/bison/bin:$PATH" XML_CATALOG_FILES="/usr/local/etc/xml/catalog" ./ios.sh --xcframework --enable-gpl --disable-lib-libaom --disable-lib-sdl --disable-lib-libvpx --enable-ios-zlib --enable-openssl --enable-zimg --enable-x264
- name: package zip
working-directory: ./prebuilt/bundle-apple-xcframework-ios/
run: zip -r ffmpegkit-bundled.xcframework.zip *
- name: Upload xcframework as workflow artifact
uses: actions/upload-artifact@v7
if: ${{ always() }}
with:
name: ffmpegkit-bundled-xcframework
path: prebuilt/bundle-apple-xcframework-ios/ffmpegkit-bundled.xcframework.zip
if-no-files-found: warn
retention-days: 30
- name: Upload Release Asset (.integrity)
id: upload-release-asset-integrity
uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
allowUpdates: true
artifacts: "prebuilt/bundle-apple-xcframework-ios/ffmpegkit-bundled.xcframework.zip"
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
prerelease: true
token: ${{ secrets.GITHUB_TOKEN }}
- 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'