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: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
|