42 lines
933 B
YAML
42 lines
933 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: linux-amd64-taggedver
|
|
|
|
platform:
|
|
arch: amd64
|
|
os: linux
|
|
|
|
steps:
|
|
- name: build_golang
|
|
image: golang
|
|
commands:
|
|
- cd dlserver
|
|
- go mod download
|
|
- go build .
|
|
- CGO_ENABLED=0 GOOS=windows go build -a -installsuffix cgo -o dlserver.exe .
|
|
|
|
- name: get_win_ffmpeg
|
|
image: busybox
|
|
commands:
|
|
- mkdir tmp
|
|
- cd tmp
|
|
- wget http://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-4.3.1-essentials_build.zip
|
|
- unzip ffmpeg-4.3.1-essentials_build.zip
|
|
|
|
- name: get_win_ytdl
|
|
image: busybox
|
|
commands:
|
|
- mkdir tmp
|
|
- cd tmp
|
|
- wget https://github.com/ytdl-org/youtube-dl/releases/download/2020.09.14/youtube-dl.exe
|
|
|
|
- name: build_godot_windows
|
|
image: barichello/godot-ci:3.2.3
|
|
commands:
|
|
- cp dlserver/dlserver.exe godot/
|
|
- cp tmp/ffmpeg.exe godot/
|
|
- cp tmp/youtube-dl.exe godot/
|
|
- cd godot/
|
|
- mkdir -v -p build/windows
|
|
- godot -v --export "win64" build/windows/asingcrow.exe
|