Skip to content

Commit

Permalink
enable CGO
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarak Ben Youssef committed Dec 13, 2023
1 parent 9fbf1b1 commit bc882b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ jobs:
goarch: ${{ matrix.goarch }}
goversion: "1.20"
project_path: "./cmd/flow"
build_command: CGO_CFLAGS="-O -D__BLST_PORTABLE__" go build
build_command: CGO_CFLAGS="-O -D__BLST_PORTABLE__" CGO_ENABLED=1 go build
ldflags: -X "github.com/onflow/flow-cli/build.commit=${{ env.COMMIT }}" -X "github.com/onflow/flow-cli/build.semver=${{ env.VERSION }}" -X "github.com/onflow/flow-cli/internal/command.mixpanelToken=${{ env.MIXPANEL_PROJECT_TOKEN }}" -X "github.com/onflow/flow-cli/internal/accounts.accountToken=${{ env.LILICO_TOKEN }}"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ endif
ci: install-tools generate test coverage

$(BINARY):
$(CGO_FLAG) GO111MODULE=on go build \
$(CGO_FLAG) CGO_ENABLED=1 GO111MODULE=on go build \
-trimpath \
-ldflags \
"-X github.com/onflow/flow-cli/build.commit=$(COMMIT) -X github.com/onflow/flow-cli/build.semver=$(VERSION) -X github.com/onflow/flow-cli/flowkit/util.MIXPANEL_PROJECT_TOKEN=${MIXPANEL_PROJECT_TOKEN} -X github.com/onflow/flow-cli/internal/accounts.accountToken=${ACCOUNT_TOKEN}"\
Expand Down

0 comments on commit bc882b2

Please sign in to comment.