2021-12-28 14:47:48 +01:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: ffmpeg
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event: tag
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: debian:11-slim
|
|
|
|
commands:
|
|
|
|
- |
|
|
|
|
sed -i 's/main/main non-free contrib/' /etc/apt/sources.list
|
|
|
|
sed s/^deb/deb-src/ /etc/apt/sources.list > /etc/apt/sources.list.d/sources.list
|
|
|
|
apt-get update
|
|
|
|
apt-get -y install nvidia-cuda-toolkit git
|
|
|
|
apt-get -y build-dep ffmpeg
|
|
|
|
|
|
|
|
cd /usr/local/src
|
|
|
|
git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git
|
|
|
|
cd /usr/local/src/nv-codec-headers
|
|
|
|
make && make install
|
|
|
|
|
2021-12-28 15:13:00 +01:00
|
|
|
mkdir /usr/local/src/ffmpeg
|
2021-12-28 14:47:48 +01:00
|
|
|
cd /usr/local/src/ffmpeg
|
|
|
|
apt-get source ffmpeg
|
2021-12-28 16:42:20 +01:00
|
|
|
echo 'CONFIG+= --enable-cuda --enable-libnpp --enable-nonfree' >> "$(ls ffmpeg-*/debian/rules)"
|
|
|
|
cd ffmpeg-* && dpkg-buildpackage -r -b -j$(nproc) && cd ..
|
2021-12-28 14:47:48 +01:00
|
|
|
cp *.deb /drone/src
|
|
|
|
|
|
|
|
- name: release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: api_key
|
|
|
|
base_url: https://git.luj0ga.de
|
|
|
|
files:
|
|
|
|
- "*.deb"
|
|
|
|
checksum:
|
|
|
|
- sha256
|
|
|
|
title: ${DRONE_TAG}
|