paulxstretch/.drone.yml

61 lines
1.8 KiB
YAML
Raw Normal View History

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-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-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
2023-03-06 14:17:05 +00:00
- git submodule update --init --recursive --progress
- name: Build the Linux version
image: ubuntu
commands:
2023-03-06 19:48:50 +00:00
- apt update -y
2023-03-06 20:20:13 +00:00
- apt 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-03-06 20:09:50 +00:00
- cmake -B build -S $DRONE_WORKSPACE -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev
2023-08-19 07:28:09 +00:00
- cmake --build build
- name: Prepare files for release
image: ubuntu:22.04
commands:
- 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/*