forked from adnanh/webhook
-
Notifications
You must be signed in to change notification settings - Fork 0
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 adnanh#101 from adnanh/development
webhook 2.5.0
- Loading branch information
Showing
6 changed files
with
56 additions
and
33 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
OS = darwin freebsd linux openbsd windows | ||
ARCHS = 386 arm amd64 arm64 | ||
|
||
all: build release | ||
|
||
build: deps | ||
go build | ||
|
||
release: clean deps | ||
@for arch in $(ARCHS);\ | ||
do \ | ||
for os in $(OS);\ | ||
do \ | ||
echo "Building $$os-$$arch"; \ | ||
mkdir -p build/webhook-$$os-$$arch/; \ | ||
GOOS=$$os GOARCH=$$arch go build -o build/webhook-$$os-$$arch/webhook; \ | ||
tar cz -C build -f build/webhook-$$os-$$arch.tar.gz webhook-$$os-$$arch; \ | ||
done \ | ||
done | ||
|
||
test: deps | ||
go test ./... | ||
|
||
deps: | ||
go get -d -v -t ./... | ||
|
||
clean: | ||
rm -rf build | ||
rm -f webhook |
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
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