Skip to content

Commit

Permalink
chore: building test for all platforms (#955)
Browse files Browse the repository at this point in the history
  • Loading branch information
kongfei605 authored Jun 5, 2024
1 parent 59764a5 commit c5594e2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,22 @@ build:
echo "Building version $(GIT_VERSION)"
go build -ldflags $(LDFLAGS) -o $(APP)

build-test:
echo "Building version $(GIT_VERSION)"
go build -ldflags $(LDFLAGS) -o $(APP)
echo "Linux amd64 building version $(GIT_VERSION)"
GOOS=linux GOARCH=amd64 go build -ldflags $(LDFLAGS) -o $(APP)
echo "Linux arm64 building version $(GIT_VERSION)"
GOOS=linux GOARCH=arm64 go build -ldflags $(LDFLAGS) -o $(APP)
echo "Windows amd64 building version $(GIT_VERSION)"
GOOS=windows GOARCH=amd64 go build -ldflags $(LDFLAGS) -o $(APP).exe
echo "Windows arm64 building version $(GIT_VERSION)"
GOOS=windows GOARCH=arm64 go build -ldflags $(LDFLAGS) -o $(APP).exe
echo "Linux amd64 slim building version $(GIT_VERSION)"
GOOS=linux GOARCH=amd64 go build --tags "no_logs no_prometheus no_traces" -ldflags $(LDFLAGS) -o $(APP)
echo "Linux arm64 slim building version $(GIT_VERSION)"
GOOS=linux GOARCH=arm64 go build --tags "no_logs no_prometheus no_traces" -ldflags $(LDFLAGS) -o $(APP)

build-pure:
echo "Building version $(GIT_VERSION)"
go build --tags "no_prometheus no_traces" -ldflags $(LDFLAGS) -o $(APP)
Expand Down

0 comments on commit c5594e2

Please sign in to comment.