This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 861a7345f ci: add test for cpp example (#5952)
861a7345f is described below
commit 861a7345fc99a5f9567436ea76d3539ffa161b0d
Author: Mingzhuo Yin <[email protected]>
AuthorDate: Sat Apr 5 11:13:32 2025 +0800
ci: add test for cpp example (#5952)
Signed-off-by: Mingzhuo Yin <[email protected]>
---
.github/workflows/ci_bindings_cpp.yml | 9 +++++++++
examples/cpp/CMakeLists.txt | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/ci_bindings_cpp.yml
b/.github/workflows/ci_bindings_cpp.yml
index b693c6c6a..709297c4b 100644
--- a/.github/workflows/ci_bindings_cpp.yml
+++ b/.github/workflows/ci_bindings_cpp.yml
@@ -30,6 +30,7 @@ on:
- "bindings/cpp/**"
- "core/**"
- ".github/workflows/ci_bindings_cpp.yml"
+ - "examples/cpp/**"
workflow_dispatch:
concurrency:
@@ -83,3 +84,11 @@ jobs:
cmake -GNinja -DOPENDAL_DEV=ON -DOPENDAL_ENABLE_ASYNC=ON
-DCMAKE_CXX_COMPILER=clang++-18 ..
ninja
./opendal_cpp_test
+
+ - name: Build Cpp examples
+ working-directory: "examples/cpp"
+ run: |
+ mkdir build
+ cd build
+ cmake -GNinja ..
+ ninja
diff --git a/examples/cpp/CMakeLists.txt b/examples/cpp/CMakeLists.txt
index d01d8be0a..a7fcaec03 100644
--- a/examples/cpp/CMakeLists.txt
+++ b/examples/cpp/CMakeLists.txt
@@ -7,7 +7,7 @@ include(FetchContent)
FetchContent_Declare(
opendal-cpp
GIT_REPOSITORY https://github.com/apache/opendal.git
- GIT_TAG 3bbec320df72689c57b4bf3d59395b85f7e1764e
+ GIT_TAG v0.52.0
SOURCE_SUBDIR bindings/cpp
)
FetchContent_MakeAvailable(opendal-cpp)