[chore](github) BE UT workflows support branch checks (#15146)
Apache Doris made the branch branch-1.2-lts protected. As a result, all pull requests for this branch should be checked before merging it. However, the BE UT workflows doesn't support branch checks and they fail to check the pull requests for the branch branch-1.2-lts. The reason is that they download the wrong pre-built third-party libraries when they check the pull requests for branch-1.2-lts.
This commit is contained in:
10
.github/workflows/be-ut-clang.yml
vendored
10
.github/workflows/be-ut-clang.yml
vendored
@ -75,8 +75,14 @@ jobs:
|
||||
sudo dpkg-reconfigure --frontend noninteractive tzdata
|
||||
|
||||
pushd thirdparty
|
||||
curl -L https://github.com/apache/doris-thirdparty/releases/download/automation/doris-thirdparty-prebuilt-linux-x86_64.tar.xz \
|
||||
-o doris-thirdparty-prebuilt-linux-x86_64.tar.xz
|
||||
branch="${{ github.base_ref }}"
|
||||
if [[ -z "${branch}" ]] || [[ "${branch}" == 'master' ]]; then
|
||||
curl -L https://github.com/apache/doris-thirdparty/releases/download/automation/doris-thirdparty-prebuilt-linux-x86_64.tar.xz \
|
||||
-o doris-thirdparty-prebuilt-linux-x86_64.tar.xz
|
||||
else
|
||||
curl -L "https://github.com/apache/doris-thirdparty/releases/download/automation-${branch/branch-/}/doris-thirdparty-prebuilt-linux-x86_64.tar.xz" \
|
||||
-o doris-thirdparty-prebuilt-linux-x86_64.tar.xz
|
||||
fi
|
||||
tar -xvf doris-thirdparty-prebuilt-linux-x86_64.tar.xz
|
||||
popd
|
||||
|
||||
|
||||
10
.github/workflows/be-ut-mac.yml
vendored
10
.github/workflows/be-ut-mac.yml
vendored
@ -83,8 +83,14 @@ jobs:
|
||||
brew install "${cellars[@]}"
|
||||
|
||||
pushd thirdparty
|
||||
curl -L https://github.com/apache/doris-thirdparty/releases/download/automation/doris-thirdparty-prebuilt-darwin-x86_64.tar.xz \
|
||||
-o doris-thirdparty-prebuilt-darwin-x86_64.tar.xz
|
||||
branch="${{ github.base_ref }}"
|
||||
if [[ -z "${branch}" ]] || [[ "${branch}" == 'master' ]]; then
|
||||
curl -L https://github.com/apache/doris-thirdparty/releases/download/automation/doris-thirdparty-prebuilt-darwin-x86_64.tar.xz \
|
||||
-o doris-thirdparty-prebuilt-darwin-x86_64.tar.xz
|
||||
else
|
||||
curl -L "https://github.com/apache/doris-thirdparty/releases/download/automation-${branch/branch-/}/doris-thirdparty-prebuilt-darwin-x86_64.tar.xz" \
|
||||
-o doris-thirdparty-prebuilt-darwin-x86_64.tar.xz
|
||||
fi
|
||||
tar -xvf doris-thirdparty-prebuilt-darwin-x86_64.tar.xz
|
||||
popd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user