diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index 423bba3a2..79c8cf734 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -40,5 +40,5 @@ jobs: goarch: ${{ matrix.goarch }} goversion: "1.20" project_path: ./cmd/flow - build_flags: GO111MODULE=on CGO_ENABLED=1 CGO_FLAGS="-O2 -D__BLST_PORTABLE__" CC=$(C_COMP) + build_flags: GO111MODULE=on CGO_ENABLED=1 CGO_FLAGS=\"-O2 -D__BLST_PORTABLE__\" CC=${C_COMP} 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/pre_build.sh b/pre_build.sh index 94ba32f09..2dd4ee82a 100644 --- a/pre_build.sh +++ b/pre_build.sh @@ -5,9 +5,9 @@ set -e # INPUT_GOARCH is a variable set by the wangyoucao577 action # https://github.com/wangyoucao577/go-release-action/blob/v1.40/action.yml#L109 -C_COMP="clang" +C_COMP="" if [ "${INPUT_GOARCH}" = "arm64" ]; then C_COMP="aarch64-linux-gnu-gcc" elif [ "${INPUT_GOARCH}" = "amd64" ]; then C_COMP="x86_64-linux-gnu-gcc" -fi \ No newline at end of file +fi