Skip to content

Commit

Permalink
Fix the ffmpeg link problem in release of macos
Browse files Browse the repository at this point in the history
  • Loading branch information
taoboyang committed Jan 2, 2025
1 parent f582fe9 commit 564942a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
run: |
echo BINARY_NAME=bmf-bin-${{ runner.os }}-${{ matrix.arch }}-${{ matrix.py_ver_prefix }} >> $GITHUB_ENV
echo BMF_PYTHON_VERSION=$(echo ${{ matrix.py_ver_prefix }} | cut -c 3).$(echo ${{ matrix.py_ver_prefix }} | cut -c 4-) >> $GITHUB_ENV
echo BMF_PYVER=${BMF_PYTHON_VERSION} >> $GITHUB_ENV
- name: Build linux release package in Docker
if: runner.os == 'Linux'
run: |
Expand All @@ -103,16 +103,12 @@ jobs:
tar czf ${{ env.BINARY_NAME }}.tar.gz --directory=. output
- name: Build macos release package
if: runner.os == 'macOS'
env:
PKG_CONFIG_PATH: "$(pwd)/ffmpeg_${{ matrix.arch }}/lib/pkgconfig"
CMAKE_ARGS: "-DHAVE_STD_REGEX=ON -DRUN_HAVE_STD_REGEX=1"
BMF_PYTHON_VERSION: ${{ env.BMF_PYTHON_VERSION }}
BMF_ARCHITECTURES: ${{ matrix.arch }}
run: |
wget https://www.python.org/ftp/python/3.9.13/python-3.9.13-macos11.pkg
sudo installer -pkg python-3.9.13-macos11.pkg -target /
brew install binutils
./scripts/build_ffmpeg.sh --arch=${{ matrix.arch }}
export PKG_CONFIG_PATH=$(pwd)/ffmpeg_${{ matrix.arch }}/lib/pkgconfig
./build_osx.sh
tar czf ${{ env.BINARY_NAME }}.tar.gz --directory=. output
Expand Down

0 comments on commit 564942a

Please sign in to comment.