Skip to content

Commit

Permalink
set cgo enabled = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
fenriz07 committed Nov 19, 2024
1 parent 2de842b commit 5f71a32
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
- deploy-pipeline-fix-build

jobs:
deploy:
Expand Down Expand Up @@ -41,12 +42,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 Down

0 comments on commit 5f71a32

Please sign in to comment.