-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from xkortex/dev/dev
Dev/dev
- Loading branch information
Showing
9 changed files
with
128 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
build/* | ||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,42 @@ | ||
VERSION := $(shell git describe --always --dirty --tags) | ||
|
||
.PHONY: default get test all | ||
|
||
default: get | ||
go build -i -ldflags="-X 'main.Version=${VERSION}'" -o ${GOPATH}/bin/passcrux | ||
|
||
get: | ||
go get | ||
|
||
default: get | ||
go build -i -ldflags="-X 'main.Version=v${VERSION}'" -o ${GOPATH}/bin/passcrux | ||
test: default | ||
bash ./tests/end2end.sh | ||
|
||
fmt: | ||
go fmt ./... | ||
|
||
static: get | ||
CGO_ENABLED=0 go build -i -ldflags="-X 'main.Version=v${VERSION}'" -o ${GOPATH}/bin/passcrux | ||
CGO_ENABLED=0 go build -i -ldflags="-X 'main.Version=${VERSION}'" -o ${GOPATH}/bin/passcrux | ||
|
||
linux_86: | ||
GOOS=linux GOARCH=386 go build -i -ldflags="-X 'main.Version=v${VERSION}'" -o build/passcrux-linux_386 | ||
GOOS=linux GOARCH=386 go build -i -ldflags="-X 'main.Version=${VERSION}'" -o build/passcrux-linux_386 | ||
|
||
linux_64: | ||
GOOS=linux GOARCH=amd64 go build -i -ldflags="-X 'main.Version=v${VERSION}'" -o build/passcrux-linux_amd64 | ||
GOOS=linux GOARCH=amd64 go build -i -ldflags="-X 'main.Version=${VERSION}'" -o build/passcrux-linux_amd64 | ||
|
||
linux_arm: | ||
GOOS=linux GOARCH=arm go build -i -ldflags="-X 'main.Version=v${VERSION}'" -o build/passcrux-linux_arm | ||
GOOS=linux GOARCH=arm go build -i -ldflags="-X 'main.Version=${VERSION}'" -o build/passcrux-linux_arm | ||
|
||
linux_arm64: | ||
GOOS=linux GOARCH=arm64 go build -i -ldflags="-X 'main.Version=v${VERSION}'" -o build/passcrux-linux_arm64 | ||
GOOS=linux GOARCH=arm64 go build -i -ldflags="-X 'main.Version=${VERSION}'" -o build/passcrux-linux_arm64 | ||
|
||
freebsd_64: | ||
GOOS=freebsd GOARCH=amd64 go build -i -ldflags="-X 'main.Version=v${VERSION}'" -o build/passcrux-freebsd_amd64 | ||
GOOS=freebsd GOARCH=amd64 go build -i -ldflags="-X 'main.Version=${VERSION}'" -o build/passcrux-freebsd_amd64 | ||
|
||
darwin_64: | ||
GOOS=darwin GOARCH=amd64 go build -i -ldflags="-X 'main.Version=v${VERSION}'" -o build/passcrux-darwin_amd64 | ||
GOOS=darwin GOARCH=amd64 go build -i -ldflags="-X 'main.Version=${VERSION}'" -o build/passcrux-darwin_amd64 | ||
|
||
windows: | ||
GOOS=windows GOARCH=amd64 go build -i -ldflags="-X 'main.Version=v${VERSION}'" -o build/passcrux-windows_amd64 | ||
GOOS=windows GOARCH=amd64 go build -i -ldflags="-X 'main.Version=${VERSION}'" -o build/passcrux-windows_amd64 | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.