14 lignes
562 o
YAML
14 lignes
562 o
YAML
language: go
|
|
go:
|
|
- 1.x
|
|
before_install:
|
|
- sudo apt-get install gcc-mingw-w64 gcc-mingw-w64-i686 gcc-mingw-w64-x86-64 binutils-mingw-w64-i686 binutils-mingw-w64-x86-64
|
|
install:
|
|
- go get github.com/tcnksm/ghr
|
|
|
|
script:
|
|
# Downloads deps automatically. No need to add manually.
|
|
- go list -f '{{.Deps}}' | tr "[" " " | tr "]" " " | xargs go list -e -f '{{if not .Standard}}{{.ImportPath}}{{end}}' | grep -v 'github.com/ewhal/nyaa' | xargs go get -v
|
|
- go build
|
|
- ./package.sh
|
|
- ghr --username ewhal --token $GITHUB_TOKEN --replace --prerelease --debug pre-release dist/
|