vvin/.circleci/config.yml

31 lines
869 B
YAML
Raw Normal View History

2019-11-09 01:30:19 -05:00
# Golang CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
jobs:
build:
docker:
2019-11-22 01:31:42 -05:00
- image: cimg/go:1.13
2019-11-09 01:30:19 -05:00
working_directory: /go/src/github.com/shu-go/vvin
environment:
- GOPATH: /home/circleci/go
steps:
- run: echo 'export PATH=${GOPATH}/bin/:${PATH}' >> $BASH_ENV
- checkout
- run: go get -u github.com/Songmu/goxz/cmd/goxz github.com/tcnksm/ghr
- run: goxz -pv $(git describe --abbrev=0) -os "windows" -arch="386 amd64" -build-ldflags "-s -w -X main.Version=$(git describe --abbrev=0)" -include sample.bat
- run: ghr -t $GITHUB_TOKEN -u shu-go --replace $(git describe --abbrev=0) goxz/
workflows:
version: 2
test-build:
jobs:
- build:
filters:
branches:
only:
- master