1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- name: Test Full Build
- on:
- pull_request:
- branches:
- - nonexistent
- paths-ignore:
- - '**.md'
- - 'LICENSE'
- env:
- DOCKER_BUILDKIT: 1
- jobs:
- build:
- name: Test Full Build
- runs-on: ubuntu-24.04
- strategy:
- fail-fast: false
- matrix:
- target: [win32,win64,winarm64]
- variant: [gpl-shared,gpl-shared 7.1]
- quickbuild: [1]
- include:
- - target: linux64
- variant: gpl
- quickbuild: ''
- - target: linux64
- variant: gpl 7.1
- quickbuild: ''
- - target: linuxarm64
- variant: gpl
- quickbuild: ''
- - target: linuxarm64
- variant: gpl 7.1
- quickbuild: ''
- steps:
- - name: Free Disk-Space
- run: df -h && sudo apt-get clean && docker system prune -a -f && sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc && df -h
- - name: Checkout
- uses: actions/checkout@v4
- - name: Install buildx
- uses: docker/setup-buildx-action@v3
- with:
- buildkitd-config: .github/buildkit.toml
- driver: docker
- - name: Get download cache key
- id: dl_cache
- run: |
- echo "dltagname=$(./util/get_dl_cache_tag.sh)" >> $GITHUB_OUTPUT
- - name: Cache
- uses: actions/cache/restore@v4
- with:
- path: .cache/downloads
- key: download-cache-${{ steps.dl_cache.outputs.dltagname }}
- restore-keys: |
- download-cache-
- - name: Build Image
- run: ./makeimage.sh ${{ matrix.target }} ${{ matrix.variant }}
- env:
- QUICKBUILD: ${{ matrix.quickbuild }}
- - name: Build ffmpeg
- run: ./build.sh ${{ matrix.target }} ${{ matrix.variant }}
- - name: Replace spaces in string
- id: strs
- run: |
- SLUG="${{ matrix.target }}-${{ matrix.variant }}"
- echo "artifact_slug=${SLUG// /-}" >> $GITHUB_OUTPUT
- - name: Upload artifacts
- uses: actions/upload-artifact@v4
- with:
- name: ffmpeg-${{ steps.strs.outputs.artifact_slug }}
- overwrite: true
- path: artifacts/*
|