From 6beeb6f0040eaf35a5ce585aa1a7c33189d1c61d Mon Sep 17 00:00:00 2001 From: ShuheiKubota Date: Sat, 9 Nov 2019 15:30:19 +0900 Subject: [PATCH] add CircleCI config --- .circleci/config.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..7e09f93 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,30 @@ +# Golang CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-go/ for more details +version: 2 +jobs: + build: + docker: + - image: circleci/golang:latest + + 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