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
|
# Check https://circleci.com/docs/2.0/language-go/ for more details
|
||||||
version: 2
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
- build:
|
build:
|
||||||
docker:
|
docker:
|
||||||
# specify the version
|
# specify the version
|
||||||
- image: liamg/golang-opengl
|
- image: liamg/golang-opengl
|
||||||
working_directory: /go/src/github.com/liamg/aminal
|
working_directory: /go/src/github.com/liamg/aminal
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: make test
|
- run: make test
|
||||||
- run: make release
|
- run: make release
|
||||||
- tag_test:
|
tag_test:
|
||||||
requires:
|
docker:
|
||||||
- build
|
# specify the version
|
||||||
steps:
|
- image: liamg/golang-opengl
|
||||||
- run: echo YES
|
requires:
|
||||||
filters:
|
- build
|
||||||
tags:
|
steps:
|
||||||
only: /.*/
|
- 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
|
# 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} .
|
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
|
exit 0
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue