Skip to content

Commit

Permalink
update autobuild script to strip debug info to reduce binary size
Browse files Browse the repository at this point in the history
  • Loading branch information
algo7 committed Mar 20, 2023
1 parent 5e4d543 commit 0b780a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ do
fi

# Set the env vars and build the binary
env GOOS=$GOOS GOARCH=$GOARCH go build -o ./build/$output_name main.go
env GOOS=$GOOS GOARCH=$GOARCH CGO_ENABLED=0 go build -ldflags="-s -w" -o ./build/$output_name main.go

# Exit if the build failed
if [ $? -ne 0 ]; then
Expand Down

0 comments on commit 0b780a2

Please sign in to comment.