ffmpeg/.drone.yml

45 lines
1.1 KiB
YAML
Raw Normal View History

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:
- apt-get update
- |
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
echo 'CONFIG+= --enable-nvenc --enable-cuda' >> ffmpeg-*/debian/rules
cd ffmpeg-* && dpkg-buildpackage -r -b -j12 && cd ..
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}