Skip to content

Commit

Permalink
hwaccels
Browse files Browse the repository at this point in the history
Signed-off-by: nanake <nanake@users.noreply.github.com>
  • Loading branch information
nanake committed Nov 29, 2023
1 parent 1a9cda8 commit b768ac7
Showing 1 changed file with 1 addition and 49 deletions.
50 changes: 1 addition & 49 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,56 +8,8 @@ on:
workflow_dispatch:

jobs:
build_targets:
name: Build target-variant image
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
target: [win32, win64]
variant: [nonfree]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@master
with:
version: v0.12.0
config-inline: |
[worker.oci]
max-parallelism = 2
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.dodosolsollalasol }}

- name: Generate Dockerfile
run: ./generate.sh ${{ matrix.target }} ${{ matrix.variant }}

- name: Image Name
id: imagename
run: |
IMG="ghcr.io/${GITHUB_ACTOR,,}/${{ matrix.target }}-${{ matrix.variant }}"
echo "image=${IMG/ /-}:latest" >> $GITHUB_OUTPUT
echo "cache=${IMG/ /-}:cache" >> $GITHUB_OUTPUT
- name: Build variant image
uses: docker/build-push-action@v5
with:
context: .
outputs: type=registry,oci-mediatypes=true,compression=zstd,compression-level=7
cache-from: type=registry,ref=${{ steps.imagename.outputs.cache }}
cache-to: type=registry,ref=${{ steps.imagename.outputs.cache }},mode=max,oci-mediatypes=true,compression=zstd,compression-level=7
tags: ${{ steps.imagename.outputs.image }}
provenance: false

build_ffmpeg:
name: Build ffmpeg
needs: build_targets
runs-on: ubuntu-22.04
strategy:
fail-fast: false
Expand All @@ -76,7 +28,7 @@ jobs:
password: ${{ secrets.dodosolsollalasol }}

- name: Build ffmpeg
run: ./build.sh ${{ matrix.target }} ${{ matrix.variant }}
run: FFMPEG_REPO_OVERRIDE=https://github.com/nanake/FFmpeg.git GIT_BRANCH_OVERRIDE=hwaccels ./build.sh ${{ matrix.target }} ${{ matrix.variant }}

- name: Upload artifacts
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit b768ac7

Please sign in to comment.