2022-11-04 22:11:33 +00:00
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
steps:
|
|
|
|
build the plugin:
|
|
|
|
image: ubuntu:22.04
|
|
|
|
commands:
|
|
|
|
- apt-get update -y
|
|
|
|
- |
|
2023-10-17 07:30:15 +00:00
|
|
|
apt-get install -y \
|
|
|
|
build-essential libasound2 cmake \
|
|
|
|
fftw-dev pkg-config libx11-dev \
|
|
|
|
x11-xserver-utils libxrandr-dev \
|
|
|
|
libxinerama-dev libxcursor-dev \
|
|
|
|
libfreetype6-dev libfftw3-dev \
|
|
|
|
libasound2-dev libjack-dev git
|
2022-11-04 22:11:33 +00:00
|
|
|
- git submodule update --init --recursive --progress
|
|
|
|
- |
|
2023-10-17 07:30:15 +00:00
|
|
|
cmake -B build -S ./ \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr -Wno-dev
|
2022-11-04 22:11:33 +00:00
|
|
|
- cmake --build build
|
|
|
|
prepare release assets:
|
|
|
|
image: ubuntu:22.04
|
|
|
|
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
|
|
|
|
- |
|
2023-10-17 07:30:15 +00:00
|
|
|
zip -r paulxstretch-standalone.zip Standalone && \
|
|
|
|
mv paulxstretch-standalone.zip $DRONE_WORKSPACE/dist/
|
2022-11-04 22:11:33 +00:00
|
|
|
- |
|
2023-10-17 07:30:15 +00:00
|
|
|
zip -r paulxstretch-vst3.zip VST3 && \
|
|
|
|
mv paulxstretch-vst3.zip $DRONE_WORKSPACE/dist/
|
2022-11-04 22:11:33 +00:00
|
|
|
publish the release:
|
|
|
|
image: woodpeckerci/plugin-gitea-release
|
|
|
|
settings:
|
2023-10-17 07:30:15 +00:00
|
|
|
base_url: https://git.badhouseplants.net
|
|
|
|
files:
|
|
|
|
- dist/*
|
|
|
|
api_key:
|
|
|
|
from_secret: GITEA_ACCESS_TOKEN_RELEASER
|
|
|
|
email notification:
|
|
|
|
image: deblan/woodpecker-email
|
|
|
|
settings:
|
|
|
|
from.address: woody@badhouseplants.net
|
|
|
|
from.name: Woody Woodpecker
|
|
|
|
host: badhouseplants.net
|
|
|
|
username:
|
|
|
|
from_secret: smtp_username
|
|
|
|
password:
|
|
|
|
from_secret: smtp_password
|
|
|
|
recipients:
|
|
|
|
- allanger@badhouseplants.net
|
|
|
|
target: main
|