2023-03-08 21:24:45 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2023-08-19 07:29:10 +00:00
|
|
|
type: docker
|
2023-08-19 07:28:09 +00:00
|
|
|
name: Release paulxstretch
|
2023-03-08 21:24:45 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
2023-08-19 07:28:09 +00:00
|
|
|
- tag
|
2023-08-17 15:18:38 +00:00
|
|
|
name: Build paulxstretch
|
2023-03-08 21:24:45 +00:00
|
|
|
|
2023-03-08 21:24:45 +00:00
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
2023-03-08 21:24:45 +00:00
|
|
|
steps:
|
2023-08-19 07:28:09 +00:00
|
|
|
- name: Build
|
|
|
|
image: ubuntu:22.04
|
2023-03-08 21:24:45 +00:00
|
|
|
commands:
|
2023-09-18 13:07:24 +00:00
|
|
|
- git submodule update --init --recursive --progress
|
2023-08-19 07:28:09 +00:00
|
|
|
- apt-get update -y
|
|
|
|
- |
|
|
|
|
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
|
|
|
|
- |
|
2023-08-19 10:56:01 +00:00
|
|
|
cmake -B build -S ./ \
|
2023-08-19 07:28:09 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr -Wno-dev
|
|
|
|
|
|
|
|
- name: Prepare files for release
|
|
|
|
image: ubuntu:22.04
|
|
|
|
commands:
|
2023-08-19 16:20:37 +00:00
|
|
|
- apt-get update
|
|
|
|
- apt-get install zip -y
|
2023-08-19 07:28:09 +00:00
|
|
|
- mkdir dist
|
2023-08-19 13:27:11 +00:00
|
|
|
- export RELEASE_DIR=build/PaulXStretch_artefacts/Release
|
2023-08-19 14:22:28 +00:00
|
|
|
- cp -r $RELEASE_DIR/Standalone/ /tmp
|
|
|
|
- cp -r $RELEASE_DIR/VST3/ /tmp
|
|
|
|
- cd /tmp
|
|
|
|
- |
|
2023-08-19 16:36:44 +00:00
|
|
|
zip -r paulxstretch-standalone.zip Standalone && \
|
2023-08-19 14:22:28 +00:00
|
|
|
mv paulxstretch-standalone.zip $DRONE_WORKSPACE/dist/
|
|
|
|
- |
|
2023-08-19 16:36:44 +00:00
|
|
|
zip -r paulxstretch-vst3.zip VST3 && \
|
2023-08-19 14:22:28 +00:00
|
|
|
mv paulxstretch-vst3.zip $DRONE_WORKSPACE/dist/
|
2023-08-19 07:28:09 +00:00
|
|
|
|
|
|
|
- name: Release paulxstretch
|
|
|
|
image: plugins/gitea-release
|
2023-03-08 21:24:45 +00:00
|
|
|
settings:
|
2023-08-19 13:27:11 +00:00
|
|
|
api_key:
|
2023-03-08 21:24:45 +00:00
|
|
|
from_secret: GITEA_TOKEN
|
2023-08-19 07:28:09 +00:00
|
|
|
base_url: https://git.badhouseplants.net
|
|
|
|
files: dist/*
|