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 +