[chore](workflow) Improve the robustness of BE UT (Clang) (#20744)

This commit is contained in:
Adonis Ling
2023-06-14 08:33:14 +08:00
committed by GitHub
parent a58a0d4003
commit edd0a1590d

View File

@ -31,6 +31,21 @@ jobs:
name: BE UT (Clang)
runs-on: ubuntu-22.04
steps:
- name: Checkout easimon/maximize-build-space
run: |
git clone -b v7 https://github.com/easimon/maximize-build-space
- name: Maximize build space
uses: ./maximize-build-space
with:
root-reserve-mb: 4096
swap-size-mb: 8192
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'
- name: Checkout
uses: actions/checkout@v3
with:
@ -65,6 +80,7 @@ jobs:
wget https://github.com/amosbird/ldb_toolchain_gen/releases/download/v0.17/ldb_toolchain_gen.sh \
-q -O /tmp/ldb_toolchain_gen.sh
bash /tmp/ldb_toolchain_gen.sh "${DEFAULT_DIR}/ldb-toolchain"
rm /tmp/ldb_toolchain_gen.sh
sudo apt update
sudo DEBIAN_FRONTEND=noninteractive apt install --yes tzdata byacc
@ -77,12 +93,11 @@ jobs:
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
-o - | tar -Jxf -
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
-o - | tar -Jxf -
fi
tar -xvf doris-thirdparty-prebuilt-linux-x86_64.tar.xz
popd
export PATH="${DEFAULT_DIR}/ldb-toolchain/bin/:$(pwd)/thirdparty/installed/bin/:${PATH}"