Skip to content

Commit c5594e2

Browse files
authored
chore: building test for all platforms (#955)
1 parent 59764a5 commit c5594e2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Makefile

+16
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,22 @@ build:
2424
echo "Building version $(GIT_VERSION)"
2525
go build -ldflags $(LDFLAGS) -o $(APP)
2626

27+
build-test:
28+
echo "Building version $(GIT_VERSION)"
29+
go build -ldflags $(LDFLAGS) -o $(APP)
30+
echo "Linux amd64 building version $(GIT_VERSION)"
31+
GOOS=linux GOARCH=amd64 go build -ldflags $(LDFLAGS) -o $(APP)
32+
echo "Linux arm64 building version $(GIT_VERSION)"
33+
GOOS=linux GOARCH=arm64 go build -ldflags $(LDFLAGS) -o $(APP)
34+
echo "Windows amd64 building version $(GIT_VERSION)"
35+
GOOS=windows GOARCH=amd64 go build -ldflags $(LDFLAGS) -o $(APP).exe
36+
echo "Windows arm64 building version $(GIT_VERSION)"
37+
GOOS=windows GOARCH=arm64 go build -ldflags $(LDFLAGS) -o $(APP).exe
38+
echo "Linux amd64 slim building version $(GIT_VERSION)"
39+
GOOS=linux GOARCH=amd64 go build --tags "no_logs no_prometheus no_traces" -ldflags $(LDFLAGS) -o $(APP)
40+
echo "Linux arm64 slim building version $(GIT_VERSION)"
41+
GOOS=linux GOARCH=arm64 go build --tags "no_logs no_prometheus no_traces" -ldflags $(LDFLAGS) -o $(APP)
42+
2743
build-pure:
2844
echo "Building version $(GIT_VERSION)"
2945
go build --tags "no_prometheus no_traces" -ldflags $(LDFLAGS) -o $(APP)

0 commit comments

Comments
 (0)