Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/packager_deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
run: rm -rf packaging/deb/bor/DEBIAN/control

- name: Building bor for arm64
run: GOARCH=arm64 GOOS=linux CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ CGO_ENABLED=1 go build -o build/bin/bor ./cmd/cli/main.go
run: GOARCH=arm64 GOOS=linux CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ CGO_ENABLED=1 go build -o build/bin/bor -pgo=prod.pprof ./cmd/cli/main.go

- name: Copying necessary binary post arm64 build
run: cp -rp build/bin/bor packaging/deb/bor/usr/bin/
Expand Down
12 changes: 10 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ builds:
env:
- CC=o64-clang
- CXX=o64-clang++
flags:
- -pgo=prod.pprof
tags:
- netgo
ldflags:
Expand All @@ -31,6 +33,8 @@ builds:
env:
- CC=oa64-clang
- CXX=oa64-clang++
flags:
- -pgo=prod.pprof
tags:
- netgo
ldflags:
Expand All @@ -46,10 +50,12 @@ builds:
env:
- CC=gcc
- CXX=g++
flags:
- -pgo=prod.pprof
tags:
- netgo
ldflags:
# We need to build a static binary because we are building in a glibc based system and running in a musl container
# We need to build a static binary because we are building in a glibc based system and running in a musl container
-s -w -extldflags "-static"

- id: linux-arm64
Expand All @@ -62,10 +68,12 @@ builds:
env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
flags:
- -pgo=prod.pprof
tags:
- netgo
ldflags:
# We need to build a static binary because we are building in a glibc based system and running in a musl container
# We need to build a static binary because we are building in a glibc based system and running in a musl container
-s -w -extldflags "-static"

nfpms:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ GOTEST = GODEBUG=cgocheck=0 go test $(GO_FLAGS) $(GO_LDFLAGS) -p 1

bor:
mkdir -p $(GOPATH)/bin/
go build -o $(GOBIN)/bor $(GO_LDFLAGS) ./cmd/cli/main.go
go build -o $(GOBIN)/bor -pgo=prod.pprof $(GO_LDFLAGS) ./cmd/cli/main.go
cp $(GOBIN)/bor $(GOPATH)/bin/
@echo "Done building."

Expand Down
Binary file added prod.pprof
Binary file not shown.
Loading