asingcrow/build/ci/drone.yml

68 lines
1.8 KiB
YAML
Raw Normal View History

2020-09-20 11:03:32 +00:00
kind: pipeline
2020-10-09 14:46:54 +00:00
type: kubernetes
2020-09-20 11:03:32 +00:00
name: linux-amd64-taggedver
platform:
arch: amd64
os: linux
steps:
- name: build_golang
image: golang
commands:
2020-09-20 11:41:15 +00:00
- cd dlserver
2020-09-20 11:39:37 +00:00
- go mod download
2020-09-20 11:03:32 +00:00
- go build .
2020-09-27 21:11:30 +00:00
- CGO_ENABLED=0 GOOS=windows go build -ldflags -H=windowsgui -a -installsuffix cgo -o dlserver.exe .
2020-09-20 11:48:56 +00:00
2020-09-20 11:56:45 +00:00
- name: get_win_ffmpeg
image: busybox
commands:
2020-09-20 12:00:02 +00:00
- mkdir -p tmp
2020-09-20 11:56:45 +00:00
- cd tmp
2020-09-20 12:12:51 +00:00
# local cache, local pls
2020-10-09 14:50:27 +00:00
- echo "192.168.1.11 nextcloud.martyn.berlin" >> /etc/hosts
2020-09-20 12:08:04 +00:00
# original url : wget http://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-4.3.1-essentials_build.zip
2020-09-20 12:09:45 +00:00
- wget -O ffmpeg.zip https://nextcloud.martyn.berlin/s/WdHk8sfZ28JXqjH/download
2020-09-20 12:08:04 +00:00
- unzip ffmpeg.zip
2020-09-20 11:56:45 +00:00
- name: get_win_ytdl
image: busybox
commands:
2020-09-20 12:00:02 +00:00
- mkdir -p tmp
2020-09-20 11:56:45 +00:00
- cd tmp
# riaa getting greedy again : original url : https://github.com/ytdl-org/youtube-dl/releases/download/2020.09.14/youtube-dl.exe
# google took advantage too and broke the 09.14 release, so yeah... arms race now.
- wget -o youtube-dl.exe https://nextcloud.martyn.berlin/s/t59bd4GBaiiqKqb/download
2020-09-20 11:56:45 +00:00
2020-09-20 11:48:56 +00:00
- name: build_godot_windows
image: barichello/godot-ci:3.2.3
commands:
- cp dlserver/dlserver.exe godot/
2020-09-20 12:00:02 +00:00
- cp tmp/ffmpeg-4.3.1-essentials_build/bin/ffmpeg.exe godot/
2020-09-20 11:56:45 +00:00
- cp tmp/youtube-dl.exe godot/
2020-09-20 11:48:56 +00:00
- cd godot/
- mkdir -v -p build/windows
- godot -v --export "win64" build/windows/asingcrow.exe
2020-09-20 12:32:01 +00:00
- ls build/windows
2020-09-20 12:20:35 +00:00
- name: package
image: alpine
commands:
- apk add --no-cache zip
2020-09-20 12:26:15 +00:00
- cd godot/build/windows
2020-09-20 12:33:44 +00:00
- zip asingcrow-release.zip asingcrow.exe asingcrow.pck
2020-09-20 12:26:15 +00:00
- name: release
image: plugins/gitea-release
settings:
2020-09-20 12:56:20 +00:00
api_key:
from_secret: gitea_release_token
base_url: https://git.martyn.berlin/
2020-09-20 12:26:15 +00:00
files:
2020-09-20 13:04:52 +00:00
- godot/build/windows/asingcrow-release.zip
2020-09-20 12:58:27 +00:00
title: Built in CI
2020-09-20 12:43:18 +00:00
prerelease: true
2020-09-20 12:26:15 +00:00
when:
event: tag