Skip to content

Commit

Permalink
[Devnet] - build step was fixed (#968)
Browse files Browse the repository at this point in the history
* set cgo enabled = 0

* set cgo enabled = 0

* build step was fixed
  • Loading branch information
fenriz07 authored Nov 19, 2024
1 parent 2de842b commit 166a29f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@ jobs:
with:
go-version: "1.22"
- name: Building elys binary
env:
CGO_ENABLED: 1
run: |
echo Building elysd binary
sudo GOOS=linux GOARCH=amd64 go build -mod=readonly -trimpath -o elysd -ldflags "-X github.com/cosmos/cosmos-sdk/version.Name=${NAME} \
sudo GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -mod=readonly -trimpath -o elysd -ldflags "-X github.com/cosmos/cosmos-sdk/version.Name=${NAME} \
-X github.com/cosmos/cosmos-sdk/version.AppName=${NAME} \
-X github.com/cosmos/cosmos-sdk/version.ServerName=${BINARY} \
-X github.com/cosmos/cosmos-sdk/version.ClientName=${BINARY} \
Expand All @@ -55,8 +53,6 @@ jobs:
-X github.com/cosmos/cosmos-sdk/types.DBBackend=${DBENGINE} \
-X github.com/elys-network/elys/app.NextVersion=${VERSION} \
-X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,osusergo,${DBENGINE} \
-w -s \
-linkmode=external \
" -tags "ledger,${DBENGINE}" ./cmd/${BINARY}
echo "Version of elysd: $(./elysd version)"
- name: Compressing elys binary
Expand Down

0 comments on commit 166a29f

Please sign in to comment.