cide: fix make file command

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
pull/462/head
Xinwei Xiong(cubxxw-openim) 1 year ago
parent d03097108c
commit dc318bbdb5

@ -114,9 +114,9 @@ go.build.%:
@if [ "$(COMMAND)" == "openim-sdk-core" ]; then \ @if [ "$(COMMAND)" == "openim-sdk-core" ]; then \
echo "===========> DEBUG: Compilation is not yet supported $(COMMAND)"; \ echo "===========> DEBUG: Compilation is not yet supported $(COMMAND)"; \
elif [ "$(COMMAND)" == "rpc" ]; then \ elif [ "$(COMMAND)" == "rpc" ]; then \
for d in $(wildcard $(ROOT_DIR)/cmd/rpc/*/); do \ for d in $(wildcard $(ROOT_DIR)/cmd/rpc/*); do \
cd $$d && CGO_ENABLED=0 GOOS=$(OS) GOARCH=$(ARCH) $(GO) build $(GO_BUILD_FLAGS) -o\ cd $${d} && CGO_ENABLED=0 GOOS=$(OS) GOARCH=$(ARCH) $(GO) build $(GO_BUILD_FLAGS) -o \
$(BIN_DIR)/platforms/$(OS)/$(ARCH)/$$(basename $$d)$(GO_OUT_EXT) .; \ $(BIN_DIR)/platforms/$(OS)/$(ARCH)/$$(basename $${d})$(GO_OUT_EXT) $${d}/main.go; \
done; \ done; \
else \ else \
CGO_ENABLED=0 GOOS=$(OS) GOARCH=$(ARCH) $(GO) build $(GO_BUILD_FLAGS) -o \ CGO_ENABLED=0 GOOS=$(OS) GOARCH=$(ARCH) $(GO) build $(GO_BUILD_FLAGS) -o \

@ -0,0 +1,25 @@
#!/usr/bin/env bash
# Build a IAM release. This will build the binaries, create the Docker
# images and other build artifacts.
set -o errexit
set -o nounset
set -o pipefail
IAM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
source "${IAM_ROOT}/scripts/common.sh"
source "${IAM_ROOT}/scripts/lib/release.sh"
IAM_RELEASE_RUN_TESTS=${IAM_RELEASE_RUN_TESTS-y}
iam::golang::setup_env
iam::build::verify_prereqs
iam::release::verify_prereqs
#iam::build::build_image
iam::build::build_command
iam::release::package_tarballs
iam::release::updload_tarballs
git push origin ${VERSION}
#iam::release::github_release
#iam::release::generate_changelog
Loading…
Cancel
Save