Attempt macOS CI
This commit is contained in:
parent
24e6cf51d3
commit
62e4c95c6a
1 changed files with 10 additions and 1 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
@ -8,6 +8,7 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DECODERS: "h264,vp8"
|
DECODERS: "h264,vp8"
|
||||||
|
MACOSX_DEPLOYMENT_TARGET: "11.0"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -17,8 +18,10 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
platform:
|
platform:
|
||||||
- { name: win-x64, os: ubuntu-20.04, flags: "--arch=x86_64 --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --disable-w32threads --extra-ldflags=\"-static-libgcc -static-libstdc++ -static -s\"" }
|
- { name: win-x64, os: ubuntu-20.04, flags: "--arch=x86_64 --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --disable-w32threads --extra-ldflags=\"-static-libgcc -static-libstdc++ -static\"" }
|
||||||
- { name: linux-x64, os: ubuntu-20.04, flags: "--arch=x86_64 --extra-ldflags=\"-static-libgcc -static-libstdc++\"" }
|
- { name: linux-x64, os: ubuntu-20.04, flags: "--arch=x86_64 --extra-ldflags=\"-static-libgcc -static-libstdc++\"" }
|
||||||
|
- { name: osx-x64, os: macos-latest, flags: "--arch=x86_64 --install-name-dir=\"@rpath\"" }
|
||||||
|
- { name: osx-arm64, os: macos-latest, flags: "--arch=arm64 --install-name-dir=\"@rpath\" --enable-neon --enable-cross-compile --cc=\"clang -arch arm64\"" }
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Linux common dependencies
|
- name: Setup Linux common dependencies
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
|
@ -35,6 +38,11 @@ jobs:
|
||||||
if: ${{ matrix.platform.name == 'win-x64' }}
|
if: ${{ matrix.platform.name == 'win-x64' }}
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64
|
sudo apt-get install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64
|
||||||
|
- name: Setup nasm for osx-x64 dependencies
|
||||||
|
if: ${{ matrix.platform.name == 'osx-x64' }}
|
||||||
|
run: |
|
||||||
|
brew install nasm
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: FFmpeg/FFmpeg
|
repository: FFmpeg/FFmpeg
|
||||||
|
@ -55,6 +63,7 @@ jobs:
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--enable-decoder=${{ env.DECODERS }} \
|
--enable-decoder=${{ env.DECODERS }} \
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--enable-stripping \
|
||||||
${{ matrix.platform.flags }} \
|
${{ matrix.platform.flags }} \
|
||||||
--prefix=release_output
|
--prefix=release_output
|
||||||
- name: "Build FFmpeg"
|
- name: "Build FFmpeg"
|
||||||
|
|
Loading…
Reference in a new issue