41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
kind: pipeline
|
|
type: docker
|
|
name: ffmpeg
|
|
|
|
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
|
|
|
|
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}
|