-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 1.18 KB
/
Copy pathMakefile
File metadata and controls
35 lines (26 loc) · 1.18 KB
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
29
30
31
32
33
34
35
.PHONY: build
tools:
bash ./scripts/tools.sh
tests:
TEST_PACKAGE=./... bash ./scripts/tests.sh
tests-verbose:
TEST_VERBOSE=true TEST_LOG_FORMAT=standard-verbose TEST_PACKAGE=./... bash ./scripts/tests.sh
lint:
bash ./scripts/lint.sh
fix:
bash ./scripts/fix.sh
ci: lint tests
build-processor:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./build/target/processor ./cmd/processor/main.go
ls -lh ./build/target
build-cli:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./build/target/cli ./cmd/cli/main.go
ls -lh ./build/target
build-cli-all:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./build/target/cli_linux_amd64 ./cmd/cli/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o ./build/target/cli_linux_arm64 ./cmd/cli/main.go
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o ./build/target/cli_macos_amd64 ./cmd/cli/main.go
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o ./build/target/cli_macos_arm64 ./cmd/cli/main.go
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ./build/target/cli_win_amd64.exe ./cmd/cli/main.go
CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -o ./build/target/cli_win_arm64.exe ./cmd/cli/main.go
ls -lh ./build/target