release script

This commit is contained in:
Liam Galvin 2018-11-24 17:44:01 +00:00
parent cafb261260
commit 049bf858f3
2 changed files with 23 additions and 17 deletions

View File

@ -3,20 +3,23 @@
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
jobs:
- build:
docker:
# specify the version
- image: liamg/golang-opengl
working_directory: /go/src/github.com/liamg/aminal
steps:
- checkout
- run: make test
- run: make release
- tag_test:
requires:
- build
steps:
- run: echo YES
filters:
tags:
only: /.*/
build:
docker:
# specify the version
- image: liamg/golang-opengl
working_directory: /go/src/github.com/liamg/aminal
steps:
- checkout
- run: make test
- run: make release
tag_test:
docker:
# specify the version
- image: liamg/golang-opengl
requires:
- build
steps:
- run: make release
filters:
tags:
only: /.*/

View File

@ -13,6 +13,9 @@ mkdir -p release/bin/linux/i386/
# build for osx using xgo - this cannot be used for linux builds due to missing deps in the xgo containers
xgo --targets=darwin/amd64 --dest=release/bin/darwin/amd64 -out ${BINARY} .
GOOS=linux GOARCH=386 go build -o release/bin/linux/i386/aminal
GOOS=linux GOARCH=amd64 go build -o release/bin/linux/amd64/aminal
exit 0