Build using netgo tag (#275)

This will create a static build using Go native networking stack.

Checked and it works stable for all archs and distros.
This commit is contained in:
Victor Castell 2021-12-27 13:26:29 +01:00 committed by GitHub
parent d5d639d0df
commit fbd2de7a85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,8 @@ builds:
env:
- CC=o64-clang
- CXX=o64-clang++
tags:
- netgo
ldflags:
-s -w
@ -29,6 +31,8 @@ builds:
env:
- CC=oa64-clang
- CXX=oa64-clang++
tags:
- netgo
ldflags:
-s -w
@ -42,9 +46,11 @@ builds:
env:
- CC=gcc
- CXX=g++
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
-s -w -linkmode external -extldflags "-static"
-s -w -extldflags "-static"
- id: linux-arm64
main: ./cmd/geth
@ -56,9 +62,11 @@ builds:
env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
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
-s -w -linkmode external -extldflags "-static"
-s -w -extldflags "-static"
nfpms:
- vendor: 0xPolygon