update README_CN #3
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
name: Arm CI Check | |
on: | |
push: | |
paths-ignore: | |
- "docs/**" | |
- "Changelog.md" | |
- "README.md" | |
pull_request: | |
paths-ignore: | |
- "docs/**" | |
- "Changelog.md" | |
- "README.md" | |
release: | |
types: [published, created, edited] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build_arm: | |
name: arm ci check | |
runs-on: self-hosted-arm | |
strategy: | |
fail-fast: false | |
env: | |
VCPKG_ROOT: ~/cache/vcpkg | |
DEPS_ROOT: ~/cache/deps | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
clean: false | |
- name: Prepare centos tools | |
run: | | |
yum install -y epel-release centos-release-scl flex bison patch gmp-static java glibc-static glibc-devel libzstd-devel | |
yum install -y devtoolset-10 llvm-toolset-7.0 rh-perl530-perl zlib-devel ccache lcov python-devel python3-devel python3-pip | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2022-07-28 | |
override: true | |
- name: Reuse build cache | |
run: | | |
mkdir -p ./build | |
rm -rf deps | |
ln -s ${{ env.DEPS_ROOT }} deps | |
- name: Remove cache if correspond dir change | |
run: ./tools/.ci/clear_build_cache.sh | |
- name: Config vcpkg registry proxy | |
run: sed -i "s/https:\/\/github.com/http:\/\/ghproxy.com\/https:\/\/github.com/g" vcpkg-configuration.json | |
- name: Build for linux | |
run: | | |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" | |
. /opt/rh/devtoolset-10/enable | |
. /opt/rh/rh-perl530/enable | |
export LIBCLANG_PATH=/opt/rh/llvm-toolset-7.0/root/lib64/ | |
. /opt/rh/llvm-toolset-7.0/enable | |
alias cmake='cmake3' | |
mkdir -p build && cd build | |
cmake3 -DCMAKE_BUILD_TYPE=Release -DTESTS=ON -DWITH_CPPSDK=ON -DWITH_TARS_SERVICES=ON -DWITH_TIKV=OFF -DWITH_TARS_SERVICES=ON .. || cat *.log | |
make -j3 | |
- name: Test | |
run: | |
cd build && CTEST_OUTPUT_ON_FAILURE=TRUE make test | |
- name: Integration test - Air | |
run: cd tools && bash .ci/ci_check_air.sh | |
- name: Integration test - Pro | |
run: cd tools && bash .ci/ci_check_pro.sh |