Add a woodpecker build
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
This commit is contained in:
60
.woodpecker/build.yaml
Normal file
60
.woodpecker/build.yaml
Normal file
@ -0,0 +1,60 @@
|
||||
# Build a container image
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
||||
steps:
|
||||
build:
|
||||
image: ubuntu:25.10
|
||||
name: Build the plugin for linux
|
||||
commands:
|
||||
- apt-get update -y
|
||||
- |
|
||||
apt-get install -y \
|
||||
build-essential libasound2t64 cmake \
|
||||
fftw-dev pkg-config libx11-dev \
|
||||
x11-xserver-utils libxrandr-dev \
|
||||
libxinerama-dev libxcursor-dev \
|
||||
libfreetype6-dev libfftw3-dev \
|
||||
libasound2-dev libjack-dev
|
||||
- |
|
||||
cmake -B build -S ./ \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr -Wno-dev
|
||||
- cmake --build build
|
||||
backend_options:
|
||||
kubernetes:
|
||||
resources:
|
||||
requests:
|
||||
memory: 500Mi
|
||||
cpu: 200m
|
||||
limits:
|
||||
memory: 1000Mi
|
||||
cpu: 1000m
|
||||
|
||||
package:
|
||||
name: Prepare files for release
|
||||
image: ubuntu:25.10
|
||||
commands:
|
||||
- apt-get update
|
||||
- apt-get install zip -y
|
||||
- mkdir dist
|
||||
- export RELEASE_DIR=build/PaulXStretch_artefacts/Release
|
||||
- cp -r $RELEASE_DIR/Standalone/ /tmp
|
||||
- cp -r $RELEASE_DIR/VST3/ /tmp
|
||||
- cd /tmp
|
||||
- |
|
||||
zip -r paulxstretch-standalone.zip Standalone && \
|
||||
mv paulxstretch-standalone.zip $CI_WORKSPACE/dist/
|
||||
- |
|
||||
zip -r paulxstretch-vst3.zip VST3 && \
|
||||
mv paulxstretch-vst3.zip $CI_WORKSPACE/dist/
|
||||
|
||||
release:
|
||||
name: Release paulxstretch
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: GITEA_TOKEN
|
||||
base_url: https://gitea.badhouseplants.net
|
||||
files: dist/*
|
Reference in New Issue
Block a user