Skip to content

fix libpciaccess

fix libpciaccess #39

name: ffmpeg-library-build
on:
push:
paths:
- 'Dockerfile'
- 'scripts/base.sh'
- 'scripts/build-library.sh'
- '.github/workflows/ffmpeg-library-build.yml'
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') == false
strategy:
matrix:
os: [linux, windows]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: akashisn
password: ${{ github.token }}
- name: Set build target (windows)
if: matrix.os == 'windows'
run: |
echo "target_os=Windows" >> $GITHUB_ENV
- name: Build ffmpeg-build-base
uses: docker/build-push-action@v4
with:
context: ./
file: ./Dockerfile
tags: |
ghcr.io/akashisn/ffmpeg-library:${{ matrix.os }}
build-args: |
TARGET_OS=${{ env.target_os }}
target: ffmpeg-library
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
push: true