This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of ssh://github.com/pingcap/br into chunk-cp
- Loading branch information
Showing
104 changed files
with
2,959 additions
and
605 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,28 @@ on: | |
branches: | ||
- master | ||
- 'release-[0-9].[0-9]*' | ||
paths-ignore: | ||
- '**.html' | ||
- '**.md' | ||
- 'CNAME' | ||
- 'LICENSE' | ||
- 'docs/**' | ||
- 'tests/**' | ||
- 'docker/**' | ||
- '.github/workflows/**.yml' | ||
pull_request: | ||
branches: | ||
- master | ||
- 'release-[0-9].[0-9]*' | ||
paths-ignore: | ||
- '**.html' | ||
- '**.md' | ||
- 'CNAME' | ||
- 'LICENSE' | ||
- 'docs/**' | ||
- 'tests/**' | ||
- 'docker/**' | ||
- '.github/workflows/**.yml' | ||
|
||
jobs: | ||
compile: | ||
|
@@ -30,7 +48,21 @@ jobs: | |
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.15 | ||
go-version: 1.16 | ||
|
||
- name: Run build | ||
run: make build | ||
|
||
compile-freebsd: | ||
name: Compile for FreeBSD job | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16 | ||
|
||
- name: Compile for FreeBSD | ||
run: GOOS=freebsd make build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# update tags | ||
git fetch --tags | ||
|
||
getLatestTags() { | ||
release_5_branch_regex="^release-5\.[0-9].*$" | ||
release_4_branch_regex="^release-4\.[0-9].*$" | ||
TOTAL_TAGS=$(git for-each-ref --sort=creatordate refs/tags | awk -F '/' '{print $3}') | ||
filter='alpha' | ||
# latest tags | ||
TAGS=$(echo $TOTAL_TAGS | tr ' ' '\n' | grep -v $filter | tail -n3) | ||
if git rev-parse --abbrev-ref HEAD | egrep -q $release_5_branch_regex | ||
then | ||
# If we are in release-5.0 branch, try to use latest 3 version of 5.x and last 4.x version | ||
TAGS=$(echo $TOTAL_TAGS | tr ' ' '\n' | fgrep "v4." | grep -v $filter | tail -n1 && echo $TOTAL_TAGS | tr ' ' '\n' | fgrep "v5." | grep -v $filter | tail -n3) | ||
elif git rev-parse --abbrev-ref HEAD | egrep -q $release_4_branch_regex | ||
then | ||
# If we are in release-4.0 branch, try to use latest 3 version of 4.x | ||
TAGS=$(echo $TOTAL_TAGS | tr ' ' '\n' | fgrep "v4." | grep -v $filter | tail -n3) | ||
fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.