forked from makenew/benthos-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 727 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
all: clean target
clean:
@rm -rf target tmp/bin tmp/benthos-*.zip
target:
@mkdir -p tmp/bin
@goreleaser build --single-target --snapshot --id benthos \
--output ./tmp/bin/benthos
@GOARCH=amd64 GOOS=linux \
goreleaser build --rm-dist --single-target --snapshot --id benthos-lambda-al2 \
--output ./tmp/bin/bootstrap
@zip -m -j tmp/benthos-lambda-al2_linux_amd64.zip ./tmp/bin/bootstrap
@GOARCH=arm64 GOOS=linux \
goreleaser build --rm-dist --single-target --snapshot --id benthos-lambda-al2 \
--output ./tmp/bin/bootstrap
@zip -m -j tmp/benthos-lambda-al2_linux_arm64.zip ./tmp/bin/bootstrap
test:
@go test ./...
lint:
@golangci-lint run
format:
@golangci-lint run --fix
.PHONY: clean format lint test