mirror of https://github.com/liamg/aminal.git
release script
This commit is contained in:
parent
3552068201
commit
788ef6de75
|
@ -21,7 +21,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: make build-linux
|
- run: make build-linux
|
||||||
- run: tree bin
|
|
||||||
build-darwin:
|
build-darwin:
|
||||||
docker:
|
docker:
|
||||||
# specify the version
|
# specify the version
|
||||||
|
@ -30,7 +29,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: make build-darwin
|
- run: make build-darwin
|
||||||
- run: tree bin
|
|
||||||
release:
|
release:
|
||||||
docker:
|
docker:
|
||||||
# specify the version
|
# specify the version
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -21,8 +21,6 @@ install: build
|
||||||
install-tools:
|
install-tools:
|
||||||
which dep || curl -L https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
which dep || curl -L https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||||
which packr || go get -u github.com/gobuffalo/packr/packr
|
which packr || go get -u github.com/gobuffalo/packr/packr
|
||||||
which github-release || go get -u github.com/aktau/github-release
|
|
||||||
which xgo || go get github.com/karalabe/xgo
|
|
||||||
|
|
||||||
.PHONY: update-fonts
|
.PHONY: update-fonts
|
||||||
update-fonts: install-tools
|
update-fonts: install-tools
|
||||||
|
@ -31,12 +29,12 @@ update-fonts: install-tools
|
||||||
packr -v
|
packr -v
|
||||||
|
|
||||||
.PHONY: build-linux
|
.PHONY: build-linux
|
||||||
build-linux: test install-tools
|
build-linux:
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -o bin/aminal-linux-amd64
|
GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -o bin/aminal-linux-amd64
|
||||||
|
|
||||||
.PHONY: build-darwin
|
.PHONY: build-darwin
|
||||||
build-darwin: test install-tools
|
build-darwin:
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
xgo --targets=darwin/amd64 --dest=bin -out ${BINARY}-darwin-amd64 .
|
xgo --targets=darwin/amd64 --dest=bin -out ${BINARY}-darwin-amd64 .
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue