1
0
Fork 0

And thus, I screwed up

master
Ambrose Chua 2018-03-26 22:00:02 +08:00
parent 0a5cdd667e
commit b076942e0e
1 changed files with 7 additions and 7 deletions

View File

@ -1,13 +1,17 @@
workspace:
base: /go
matrix:
GO_VERSION:
- "1.10"
GOOS:
- linux
# - windows
# - darwin
- windows
- darwin
GOARCH:
- amd64
# - arm64
- arm64
pipeline:
build:
image: golang:${GO_VERSION}
@ -15,10 +19,6 @@ pipeline:
commands:
- export FILENAME=${DRONE_REPO_NAME}-${GOOS}-${GOARCH}
- if [[ "$GOOS" == "windows" ]]; then export FILENAME=$FILENAME.exe; fi
- go version
- ls -lah
- ls vendor/
- env
- go build -ldflags "-s -w" -o dist/$FILENAME
release:
image: plugins/github-release