This is an automated email from the ASF dual-hosted git repository.
xiaokang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-graphar.git
The following commit(s) were added to refs/heads/main by this push:
new 919818b3 feat(ci): add release build type ci test (#792)
919818b3 is described below
commit 919818b397cc78ad69978f580c1296563017663f
Author: Xiaokang Yang <[email protected]>
AuthorDate: Fri Oct 17 14:42:10 2025 +0800
feat(ci): add release build type ci test (#792)
* try to add release build type test
* test nightly ci
* test nightly ci
* revert nightly run
---
.github/workflows/ci-nightly.yml | 37 ++++++++++++++++++++++++++++++-------
.github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 66 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/ci-nightly.yml b/.github/workflows/ci-nightly.yml
index 09ae5c6c..a41b73fb 100644
--- a/.github/workflows/ci-nightly.yml
+++ b/.github/workflows/ci-nightly.yml
@@ -57,20 +57,43 @@ jobs:
git clone https://github.com/apache/incubator-graphar-testing.git
$GAR_TEST_DATA --depth 1
- - name: CMake
+ - name: CMake-debug
run: |
- mkdir build
- pushd build
+ mkdir build-debug
+ pushd build-debug
cmake ../cpp -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=ON
-DBUILD_EXAMPLES=ON -DBUILD_ARROW_FROM_SOURCE=ON
popd
- - name: Build GraphAr
+ - name: Build GraphAr-debug
run: |
- pushd build
+ pushd build-debug
make -j$(nproc)
make graphar-ccache-stats
popd
- - name: Test
+
+ - name: Test-debug
run: |
- cd build
+ pushd build-debug
ctest --output-on-failure
+ popd
+
+
+ - name: CMake-release
+ run: |
+ mkdir build-release
+ pushd build-release
+ cmake ../cpp -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTS=ON
-DBUILD_EXAMPLES=ON -DBUILD_ARROW_FROM_SOURCE=ON
+ popd
+
+ - name: Build GraphAr-release
+ run: |
+ pushd build-release
+ make -j$(nproc)
+ make graphar-ccache-stats
+ popd
+
+ - name: Test-release
+ run: |
+ pushd build-release
+ ctest --output-on-failure
+ popd
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7c1665e4..222ca366 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -170,6 +170,24 @@ jobs:
flags: cpp
token: ${{ secrets.CODECOV_TOKEN }}
+ - name: test release build type
+ working-directory: "cpp"
+ run: |
+ mkdir build-release
+ pushd build-release
+ cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTS=ON
-DBUILD_EXAMPLES=ON -DBUILD_BENCHMARKS=ON
+ make -j$(nproc)
+ export ASAN_OPTIONS=detect_leaks=0
+ ctest --output-on-failure
+ popd
+
+ - name: Benchmark-release
+ working-directory: "cpp/build-release"
+ run: |
+ ./graph_info_benchmark
+ ./arrow_chunk_reader_benchmark
+ ./label_filter_benchmark
+
- name: Use Static Arrow
working-directory: "cpp"
run: |
@@ -222,6 +240,24 @@ jobs:
export ASAN_OPTIONS=detect_leaks=0
ctest --output-on-failure
+ - name: test release build type
+ working-directory: "cpp"
+ run: |
+ mkdir build-release
+ pushd build-release
+ cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTS=ON
-DBUILD_EXAMPLES=ON -DBUILD_BENCHMARKS=ON
+ make -j$(nproc)
+ export ASAN_OPTIONS=detect_leaks=0
+ ctest --output-on-failure
+ popd
+
+ - name: Benchmark-release
+ working-directory: "cpp/build-release"
+ run: |
+ ./graph_info_benchmark
+ ./arrow_chunk_reader_benchmark
+ ./label_filter_benchmark
+
- name: Use Static Arrow
working-directory: "cpp"
run: |
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]