Skip to content

Commit 16dc003

Browse files
authored
fix arm64 build (#408)
Signed-off-by: Ping Yu <[email protected]>
1 parent db0ae72 commit 16dc003

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/release_version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ jobs:
7474
run: |
7575
export GOPATH=${GITHUB_WORKSPACE}/go
7676
export PATH=$PATH:$GOPATH/bin
77-
export GOOS=${{ matrix.os }}
78-
export GOARCH=${{ matrix.arch }}
77+
export TARGET_OS=${{ matrix.os }}
78+
export TARGET_ARCH=${{ matrix.arch }}
7979
if [ ! -z ${{ steps.check_staging.outputs.STAGING }} ]; then
8080
export REL_VER=${{ steps.check_staging.outputs.STAGING }}+staging
8181
else

br/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ build:
9595
CGO_ENABLED=1 $(GO) build -tags codes -gcflags "all=-N -l" -ldflags '$(LDFLAGS)' -o $(BR_BIN_PATH) cmd/br/*.go
9696

9797
release:
98-
CGO_ENABLED=1 $(GO) build -tags codes -ldflags '$(LDFLAGS)' -o $(BR_BIN_PATH) cmd/br/*.go
98+
CGO_ENABLED=1 GOOS=$(TARGET_OS) GOARCH=$(TARGET_ARCH) $(GO) build -tags codes -ldflags '$(LDFLAGS)' -o $(BR_BIN_PATH) cmd/br/*.go
9999

100100
build/rawkv-integration-test:
101101
cd tests/rawkv && $(GO) build -mod=mod -o ../../bin/rawkv_test *.go

cdc/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ endif
2121

2222
BUILD_FLAG := -buildvcs=false
2323

24-
GOBUILD := CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) $(GO) build $(BUILD_FLAG) -trimpath $(GOVENDORFLAG)
24+
GOBUILD := CGO_ENABLED=0 GOOS=$(TARGET_OS) GOARCH=$(TARGET_ARCH) $(GO) build $(BUILD_FLAG) -trimpath $(GOVENDORFLAG)
2525
GOBUILD_DEBUG := CGO_ENABLED=0 $(GO) build $(BUILD_FLAG) -gcflags "all=-N -l" $(GOVENDORFLAG)
2626
GOBUILDNOVENDOR := CGO_ENABLED=0 $(GO) build $(BUILD_FLAG) -trimpath
2727
GOTEST := CGO_ENABLED=1 $(GO) test -p $(P) --race
@@ -45,7 +45,7 @@ FAILPOINT_DISABLE := $$(echo $(FAILPOINT_DIR) | xargs $(FAILPOINT) disable >/dev
4545

4646
RELEASE_VERSION ?=
4747
ifeq ($(RELEASE_VERSION),)
48-
RELEASE_VERSION := v1.2-master
48+
RELEASE_VERSION := v1.3-master
4949
release_version_regex := ^cdc-v[0-9]\..*$$
5050
release_branch_regex := "^cdc-[0-9]\.[0-9].*$$|^HEAD$$|^.*/*tags/cdc-v[0-9]\.[0-9]\..*$$"
5151
ifneq ($(shell git rev-parse --abbrev-ref HEAD | egrep $(release_branch_regex)),)

0 commit comments

Comments
 (0)