From 59fe8d09fb8ab8540b77a79d08dd4d99e82b7811 Mon Sep 17 00:00:00 2001 From: Tarak Ben Youssef Date: Tue, 6 Feb 2024 21:08:02 +0100 Subject: [PATCH] adjust makefile path --- .github/workflows/build-release.yaml | 4 ++-- Makefile | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index 46a7dc22d..e0651f7c6 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -35,10 +35,10 @@ jobs: COMMIT: ${{ github.sha }} with: pre_command: make generate && make install-cross-build-tools - build_command: make -C ../.. build github_token: ${{ secrets.GITHUB_TOKEN }} goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }} goversion: "1.20" - project_path: "./cmd/flow" + project_path: ./cmd/flow + build_command: make --directory=./../.. 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 }}" diff --git a/Makefile b/Makefile index 970588362..68b6ae9c4 100644 --- a/Makefile +++ b/Makefile @@ -131,4 +131,5 @@ build: CGO_FLAGS="-O2 -D__BLST_PORTABLE__" \ CC=$(C_COMP) \ GOARCH=$(INPUT_GOARCH) \ - go build + go build -C ./cmd/flow +