Skip to content

Commit

Permalink
remove cli-bindata-gen from ci and makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
lizzy-0323 committed Dec 19, 2024
1 parent 3926c51 commit cbfa6aa
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
go-version: ${{ env.GO_VERSION }}

- name: generate bindata
run: make dashboard-bindata-gen dashboard-doc-gen cli-bindata-gen
run: make dashboard-bindata-gen dashboard-doc-gen

- name: go mod vendor
run: go mod vendor
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
go-version: ${{ env.GO_VERSION }}

- name: generate bindata
run: make dashboard-bindata-gen cli-bindata-gen dashboard-doc-gen
run: make dashboard-bindata-gen dashboard-doc-gen

- name: go mod vendor
run: go mod vendor
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
cache: true

- name: generate bindata
run: make dashboard-bindata-gen dashboard-doc-gen cli-bindata-gen
run: make dashboard-bindata-gen dashboard-doc-gen

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
go-version: ${{ env.GO_VERSION }} # The Go version to download (if necessary) and use.

- name: generate bindata
run: make dashboard-bindata-gen dashboard-doc-gen cli-bindata-gen
run: make dashboard-bindata-gen dashboard-doc-gen

- name: go mod vendor
run: go mod vendor
Expand Down
2 changes: 1 addition & 1 deletion make/build.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
##@ Build

.PHONY: build
build: dashboard-doc-gen dashboard-bindata-gen cli-bindata-gen manifests generate fmt vet ## Build manager binary.
build: dashboard-doc-gen dashboard-bindata-gen manifests generate fmt vet ## Build manager binary.
CGO_ENABLED=0 GOOS=linux go build -o bin/manager cmd/operator/main.go

# If you wish built the manager image targeting other platforms you can use the --platform flag.
Expand Down
6 changes: 1 addition & 5 deletions make/cli.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,10 @@ CLI_BUILD := GO11MODULE=ON CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go build
BUILD_DIR?=bin/

.PHONY: cli-build
cli-build: cli-bindata-gen dashboard-doc-gen dashboard-bindata-gen ## Build oceanbase-cli
cli-build: ## Build oceanbase-cli
@echo "Building $(BINARY_NAME) for $(GOOS)/$(GOARCH)..."
$(CLI_BUILD) -o $(BUILD_DIR)$(BINARY_NAME) cmd/cli/main.go

.PHONY: cli-bindata-gen
cli-bindata-gen: cli-dep-install ## Generate bindata
go-bindata -o internal/cli/generated/bindata/bindata.go -pkg bindata internal/assets/cli-templates/...

.PHONY: cli-clean
cli-clean: ## Clean build
rm -rf $(RELEASE_DIR)/$(BINARY_NAME)
Expand Down
2 changes: 1 addition & 1 deletion make/helper.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
##@ Helper

.PHONY: helper-build
helper-build: dashboard-bindata-gen dashboard-doc-gen cli-bindata-gen ## Build oceanbase helper binary.
helper-build: dashboard-bindata-gen dashboard-doc-gen ## Build oceanbase helper binary.
@echo "Building helper..."
CGO_ENABLED=0 GOOS=linux go build -a -o bin/oceanbase-helper ./cmd/oceanbase-helper/main.go

0 comments on commit cbfa6aa

Please sign in to comment.