Try deleting libmp3lame shared libs to force static #12
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: Build static ffmpeg | |
on: | |
push: | |
pull_request: | |
jobs: | |
package-linux: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
arch: | |
- x86_64 | |
env: | |
ARCH: ${{ matrix.arch }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update -y && \ | |
sudo apt-get install -y yasm libmp3lame-dev | |
- name: Delete libmp3lame-dev shared libraries | |
run: | | |
sudo rm -f /usr/lib/x86_64-linux-gnu/libmp3lame.so* | |
- name: Build | |
run: ./build-linux.sh | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ffmpeg-linux-${{ env.ARCH }} | |
path: artifacts/ | |
release: | |
runs-on: ubuntu-20.04 | |
needs: | |
- package-linux | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
path: artifacts/ | |
- name: Make tarballs | |
run: | | |
mkdir artifacts/release/ | |
cd artifacts/ | |
for dir in ffmpeg-*/ffmpeg-* | |
do | |
name=$(basename $dir) | |
tar czf release/$name.tar.gz -C $(dirname $dir) $name | |
done | |
ls -l release/ | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/v') | |
with: | |
files: artifacts/release/* | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |