44 lines
937 B
YAML
44 lines
937 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: fallbackswitch
|
|
|
|
clone: { disable: yes }
|
|
|
|
environment:
|
|
DRONE_TAG: 0.7.2
|
|
CLONE_URL: https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
|
|
|
|
steps:
|
|
|
|
- name: clone
|
|
image: alpine/git
|
|
commands:
|
|
- git clone $CLONE_URL .
|
|
- git switch $TAG
|
|
|
|
- name: build
|
|
image: debian:11-slim
|
|
commands:
|
|
|
|
- apt-get update
|
|
- >-
|
|
apt-get install -y --no-install-recommends
|
|
autoconf
|
|
build-essential
|
|
ca-certificates
|
|
curl
|
|
git
|
|
gstreamer1.0-gl
|
|
gstreamer1.0-plugins-base
|
|
gstreamer1.0-tools
|
|
libglib2.0-dev
|
|
libgstreamer1.0-dev
|
|
libgstreamer-plugins-base1.0-dev
|
|
- curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y
|
|
|
|
- cd utils/fallbackswitch
|
|
- . $HOME/.cargo/env && cargo build --release
|
|
- cd ../..
|
|
- find target -name '*.so'
|
|
|