enhance: upgrade OpenDAL to v0.42.0 and optimize the building (#28556)

- Upgrade OpenDAL to v0.42.0
- Clone OpenDAL with depth 1
- Add build log for OpenDAL

---------

Signed-off-by: yah01 <yah2er0ne@outlook.com>
This commit is contained in:
yah01 2023-11-20 14:58:20 +08:00 committed by GitHub
parent 7f46f4c628
commit da03feb79a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,9 +63,8 @@ popd
pushd ${ROOT_DIR}/cmake_build/thirdparty pushd ${ROOT_DIR}/cmake_build/thirdparty
git clone https://github.com/apache/incubator-opendal.git opendal git clone --depth=1 --branch v0.42.0 https://github.com/apache/incubator-opendal.git opendal
cd opendal cd opendal
git checkout 58f1202
if command -v cargo >/dev/null 2>&1; then if command -v cargo >/dev/null 2>&1; then
echo "cargo exists" echo "cargo exists"
else else
@ -73,7 +72,7 @@ else
source $HOME/.cargo/env source $HOME/.cargo/env
fi fi
pushd bindings/c pushd bindings/c
cargo build --release || { echo 'opendal_c build failed'; exit 1; } cargo build --release --verbose || { echo 'opendal_c build failed'; exit 1; }
popd popd
mkdir -p ${ROOT_DIR}/internal/core/output/lib mkdir -p ${ROOT_DIR}/internal/core/output/lib
mkdir -p ${ROOT_DIR}/internal/core/output/include mkdir -p ${ROOT_DIR}/internal/core/output/include