2020-09-20 11:03:32 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
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-26 10:56:08 +00:00
|
|
|
- CGO_ENABLED=0 GOOS=windows -ldflags -H=windowsgui go build -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
|
|
|
|
- echo "10.43.14.171 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
|
|
|
|
- wget https://github.com/ytdl-org/youtube-dl/releases/download/2020.09.14/youtube-dl.exe
|
|
|
|
|
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
|
2020-09-20 12:40:32 +00:00
|
|
|
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
|