From 5de2ff83cfab459bdf0c35376e199416e5024dc5 Mon Sep 17 00:00:00 2001 From: John FrostFox <jf049@noreply.git.netplus.friskyfox.art> Date: Sun, 14 Nov 2021 22:40:41 +0300 Subject: [PATCH] DroneCI integration (#23) Reviewed-on: https://git.netplus.friskyfox.art/NetPlus/netplus/pulls/23 Co-authored-by: John FrostFox <jf049@noreply.git.netplus.friskyfox.art> Co-committed-by: John FrostFox <jf049@noreply.git.netplus.friskyfox.art> --- .drone.yml | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 96 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 000000000..c374f766c --- /dev/null +++ b/.drone.yml @@ -0,0 +1,95 @@ +--- +# DO NOT EDIT + +kind: pipeline +type: docker +name: linux-amd64-binary + +platform: + arch: amd64 + os: linux + +steps: +#- name: srb2-data-download +# image: archlinux/archlinux:base-devel +# commands: +# - git clone https://aur.archlinux.org/srb2-data.git && cd srb2-data && makepkg -si + +- name: update&build + image: archlinux/archlinux:base-devel + pull: if-not-exists + commands: + - pacman -Syu libgme libopenmpt libpng sdl2_mixer glu mesa nasm upx git --noconfirm + - make -C src/ LINUX64=1 EXENAME=lsdl2srb2_x64_netplus -j $(grep -c processor /proc/cpuinfo) + +- name: publish + image: vividboarder/drone-webdav + settings: + file: bin/lsdl2srb2_x64_netplus + destination: + from_secret: upload_destination_linux + username: + from_secret: webdav_username + password: + from_secret: webdav_password + +--- + +kind: pipeline +type: docker +name: windows-x86-binary + +platform: + arch: amd64 + os: linux + +steps: + +- name: update&build + image: archlinux/archlinux:base-devel + pull: if-not-exists + commands: + - pacman -Syu libgme libopenmpt libpng sdl2_mixer glu mesa nasm upx git mingw-w64-binutils mingw-w64-crt mingw-w64-gcc mingw-w64-headers mingw-w64-winpthreads --noconfirm + - env PREFIX=i686-w64-mingw32 make -C src/ NOUPX=1 MINGW=1 EXENAME=srb2win_netplus.exe -j $(grep -c processor /proc/cpuinfo) + +- name: publish + image: vividboarder/drone-webdav + settings: + file: bin/srb2win_netplus.exe + destination: + from_secret: upload_destination_windowsx86 + username: + from_secret: webdav_username + password: + from_secret: webdav_password + +--- + +kind: pipeline +type: docker +name: windows-x64-binary + +platform: + arch: amd64 + os: linux + +steps: + +- name: update&build + image: archlinux/archlinux:base-devel + pull: if-not-exists + commands: + - pacman -Syu libgme libopenmpt libpng sdl2_mixer glu mesa nasm upx git mingw-w64-binutils mingw-w64-crt mingw-w64-gcc mingw-w64-headers mingw-w64-winpthreads --noconfirm + - env PREFIX=x86_64-w64-mingw32 make -C src/ MINGW64=1 NOUPX=1 EXENAME=srb2win_x64_netplus.exe -j $(grep -c processor /proc/cpuinfo) + +- name: publish + image: vividboarder/drone-webdav + settings: + file: bin/srb2win_x64_netplus.exe + destination: + from_secret: upload_destination_windowsx64 + username: + from_secret: webdav_username + password: + from_secret: webdav_password + diff --git a/README.md b/README.md index cf8c72df7..a9979f04c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # Sonic Robo Blast 2 NetPlus - Rollback Netcode mod +[](https://droneci.netplus.friskyfox.art/NetPlus/netplus) [Sonic Robo Blast 2](https://srb2.org/) is a 3D Sonic the Hedgehog fangame based on a modified version of [Doom Legacy](http://doomlegacy.sourceforge.net/). -- GitLab