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-20 11:43:23 +00:00
|
|
|
- CGO_ENABLED=0 GOOS=windows 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:30:52 +00:00
|
|
|
- ls
|
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:20:35 +00:00
|
|
|
- zip asyncrow-release.zip asingrow.exe asingrow.pck
|
2020-09-20 12:26:15 +00:00
|
|
|
|
|
|
|
- name: release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
api_key: f72787a6777986271730d24e7ccb3dc61d8c370b #don't worry, this is temporary whilst we test!
|
|
|
|
base_url: http://10.43.26.198
|
|
|
|
files:
|
|
|
|
- godot/build/windows/asyncrow-release.zip
|
|
|
|
when:
|
|
|
|
event: tag
|