Skip to content

[ENG-1184, ENG-1286, ENG-1330] Rework native dependencies (+ deb fixes) #114

[ENG-1184, ENG-1286, ENG-1330] Rework native dependencies (+ deb fixes)

[ENG-1184, ENG-1286, ENG-1330] Rework native dependencies (+ deb fixes) #114

Workflow file for this run

name: Build ffmpeg
on:
push:
paths:
- '.github/workflows/ffmpeg.yml'
- '.github/scripts/ffmpeg/**'
branches:
- main
pull_request:
paths:
- '.github/workflows/ffmpeg.yml'
- '.github/scripts/ffmpeg/**'
workflow_dispatch:
# Cancel previous runs of the same workflow on the same branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
FFMPEG_VERSION: '6.0'
jobs:
build-ffmpeg:
strategy:
matrix:
settings:
# - target: x86_64-macos-none
# - target: aarch64-macos-none
- target: x86_64-windows-gnu
- target: aarch64-windows-gnu
- target: x86_64-linux-gnu
- target: aarch64-linux-gnu
# - target: x86-linux-musl
# - target: aarch64-linux-musl
name: Build ffmpeg ${{ matrix.settings.target }}
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
install: true
platforms: linux/amd64
driver-opts: |
image=moby/buildkit:master
network=host
- name: Build ffmpeg
run: |
set -euxo pipefail
cd .github/scripts/ffmpeg
docker build --no-cache --build-arg TARGET=${{ matrix.settings.target }} -o . .
mv out/srv.tar.xz ./
- name: Publish ffmpeg
uses: actions/upload-artifact@v3
with:
name: ffmpeg-6.0-${{ matrix.settings.target }}
path: .github/scripts/ffmpeg/out/*
if-no-files-found: error
- name: Publish built source
uses: actions/upload-artifact@v3
with:
name: ffmpeg-6.0-${{ matrix.settings.target }}-source
path: .github/scripts/ffmpeg/srv.tar.xz
if-no-files-found: warn