mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-04-28 14:29:19 +08:00
Feat/add test scripts (#1341)
* kubernetes for kustomize learning Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> * feat(main): add openim server test cicd * feat(main): add openim scripts token --------- Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
This commit is contained in:
@@ -102,27 +102,24 @@ endif
|
||||
# The OS can be linux/windows/darwin when building binaries
|
||||
PLATFORMS ?= linux_s390x linux_mips64 linux_mips64le darwin_amd64 windows_amd64 linux_amd64 linux_arm64 linux_ppc64le # wasip1_wasm
|
||||
|
||||
# only support linux
|
||||
GOOS=linux
|
||||
|
||||
# set a specific PLATFORM, defaults to the host platform
|
||||
ifeq ($(origin PLATFORM), undefined)
|
||||
ifeq ($(origin GOARCH), undefined)
|
||||
GOARCH := $(shell go env GOARCH)
|
||||
endif
|
||||
ifeq ($(origin GOARCH), undefined)
|
||||
GOARCH := $(shell go env GOARCH)
|
||||
endif
|
||||
# Determine the host OS
|
||||
GOOS := $(shell go env GOOS)
|
||||
PLATFORM := $(GOOS)_$(GOARCH)
|
||||
# Use linux as the default OS when building images
|
||||
IMAGE_PLAT := linux_$(GOARCH)
|
||||
# Use the host OS and GOARCH as the default when building images
|
||||
IMAGE_PLAT := $(PLATFORM)
|
||||
else
|
||||
# such as: PLATFORM = linux_amd64
|
||||
# Parse the PLATFORM variable
|
||||
GOOS := $(word 1, $(subst _, ,$(PLATFORM)))
|
||||
GOARCH := $(word 2, $(subst _, ,$(PLATFORM)))
|
||||
IMAGE_PLAT := $(PLATFORM)
|
||||
endif
|
||||
|
||||
|
||||
# Protobuf file storage path
|
||||
APIROOT=$(ROOT_DIR)/pkg/proto
|
||||
|
||||
|
||||
Reference in New Issue
Block a user