Skip to content

Build FFmpeg

Build FFmpeg #150

Workflow file for this run

name: Build FFmpeg
on: workflow_dispatch
jobs:
build-linux:
name: Build Linux
# Use 20.04 to target glibc 2.31 like the other native libs
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
arch: [x64, arm64]
steps:
- name: Install dependencies (x64)
if: matrix.arch == 'x64'
run: |
sudo apt-get update
sudo apt-get install nasm
- name: Install dependencies (arm64)
if: matrix.arch == 'arm64'
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends \
make \
gcc-aarch64-linux-gnu \
binutils-aarch64-linux-gnu \
pkg-config-aarch64-linux-gnu
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: osu.Framework.NativeLibs/scripts/ffmpeg/build-linux.sh
env:
arch: ${{ matrix.arch }}
- name: Upload
uses: actions/upload-artifact@v4
with:
name: linux-${{ matrix.arch }}
path: linux-${{ matrix.arch }}