Update the drone pipeline

This commit is contained in:
Nikolai Rodionov 2023-09-18 15:07:24 +02:00
parent ee5dc2ada3
commit 7ba9ec7135
No known key found for this signature in database
GPG Key ID: 906851F91B1DA3EF

View File

@ -19,6 +19,7 @@ steps:
- name: Build
image: ubuntu:22.04
commands:
- git submodule update --init --recursive --progress
- apt-get update -y
- |
apt-get install -y \
@ -32,29 +33,6 @@ steps:
cmake -B build -S ./ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr -Wno-dev
- git submodule update --init --recursive --progress
- git submodule update --init --recursive
- name: Build and push the docker image
image: plugins/docker
when:
branch:
- dev
settings:
registry: git.badhouseplants.net
username: allanger
password:
from_secret: GITEA_TOKEN
repo: git.badhouseplants.net/${DRONE_REPO}
dockerfile: Containerfile
tags: latest
- name: Build the Linux version
image: ubuntu
commands:
- apt update -y
- 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
- cmake -B build -S $DRONE_WORKSPACE -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev
- cmake --build build
- name: Prepare files for release
image: ubuntu:22.04