Build FFmpeg #150
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 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 }} | |