mirror of https://github.com/liamg/aminal.git
release script
This commit is contained in:
parent
cafb261260
commit
049bf858f3
|
@ -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: /.*/
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue