👷 Upload snapshots
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
816017d4f1
commit
e0eee2c023
61
.drone.yml
61
.drone.yml
|
@ -1,11 +1,68 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: git.aksdb.de/aksdb/centred:builder-220724
|
||||
- name: Build
|
||||
image: git.aksdb.de/aksdb/centred:builder-220814
|
||||
commands:
|
||||
- ~/lazarus/lazbuild --lazarusdir=~/lazarus --build-mode="Release.win32" -B Client/CentrED.lpr
|
||||
- ~/lazarus/lazbuild --lazarusdir=~/lazarus --build-mode="Release.Linux.x64" -B Client/CentrED.lpr
|
||||
- ~/lazarus/lazbuild --lazarusdir=~/lazarus --build-mode="Release.win32" -B Server/cedserver.lpi
|
||||
- ~/lazarus/lazbuild --lazarusdir=~/lazarus --build-mode="Release.Linux.x64" -B Server/cedserver.lpi
|
||||
|
||||
- name: Package
|
||||
image: git.aksdb.de/aksdb/centred:builder-220814
|
||||
commands:
|
||||
- mkdir -p dist/client.win32 dist/client.linux.x64 dist/server.win32 dist/server.linux.x64
|
||||
- cp Client.bin/nodraw.txt Client.bin/ColorLight.xml dist/client.linux.x64/
|
||||
- cp Client.bin/nodraw.txt Client.bin/ColorLight.xml dist/client.win32/
|
||||
- cp Client.bin/CentrED.x64 dist/client.linux.x64/CentrED
|
||||
- cp Client.bin/CentrED.exe dist/client.win32/CentrED.exe
|
||||
- cp Server.bin/cedserver.x64 dist/server.linux.x64/cedserver
|
||||
- cp Server.bin/cedserver.exe dist/server.win32/cedserver.exe
|
||||
- cd dist/client.win32 && zip ../CentrED.win32.zip *
|
||||
- cd ../client.linux.x64 && tar czf ../CentrED.linux.x64.tgz *
|
||||
- cd ../server.win32 && zip ../Server.win32.zip *
|
||||
- cd ../server.linux.x64 && tar czf ../Server.linux.x64.tgz *
|
||||
|
||||
- name: Upload Client (win32)
|
||||
image: vividboarder/drone-webdav
|
||||
settings:
|
||||
file: dist/CentrED.win32.zip
|
||||
destination: https://aksdb.de/snapshots/CentrED/
|
||||
username: centred
|
||||
password:
|
||||
from_secret: snapshots_password
|
||||
|
||||
- name: Upload Client (linux x64)
|
||||
image: vividboarder/drone-webdav
|
||||
settings:
|
||||
file: dist/CentrED.linux.x64.tgz
|
||||
destination: https://aksdb.de/snapshots/CentrED/
|
||||
username: centred
|
||||
password:
|
||||
from_secret: snapshots_password
|
||||
|
||||
- name: Upload Server (win32)
|
||||
image: vividboarder/drone-webdav
|
||||
settings:
|
||||
file: dist/Server.win32.zip
|
||||
destination: https://aksdb.de/snapshots/CentrED/
|
||||
username: centred
|
||||
password:
|
||||
from_secret: snapshots_password
|
||||
|
||||
- name: Upload Server (linux x64)
|
||||
image: vividboarder/drone-webdav
|
||||
settings:
|
||||
file: dist/Server.linux.x64.tgz
|
||||
destination: https://aksdb.de/snapshots/CentrED/
|
||||
username: centred
|
||||
password:
|
||||
from_secret: snapshots_password
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
FROM ubuntu:jammy
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y libgtk2.0-dev libgl-dev binutils-mingw-w64-i686 git wget && \
|
||||
apt install -y libgtk2.0-dev libgl-dev binutils-mingw-w64-i686 git wget zip && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
ln -s /usr/bin/i686-w64-mingw32-windres /usr/bin/i386-win32-windres && \
|
||||
ln -s /usr/bin/i686-w64-mingw32-windres /usr/bin/windres
|
||||
|
|
Loading…
Reference in New Issue