You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fluss.apache.org by yu...@apache.org on 2026/04/19 02:32:04 UTC
(fluss-rust) branch main updated: [ci] cache C++ build with sccache (#505)
This is an automated email from the ASF dual-hosted git repository.
luoyuxia pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fluss-rust.git
The following commit(s) were added to refs/heads/main by this push:
new 81545c6 [ci] cache C++ build with sccache (#505)
81545c6 is described below
commit 81545c6a4c2fd221e0a9f52a490c982a3db85fab
Author: Anton Borisov <14...@users.noreply.github.com>
AuthorDate: Sun Apr 19 03:32:00 2026 +0100
[ci] cache C++ build with sccache (#505)
---
.github/workflows/build_and_test_cpp.yml | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/build_and_test_cpp.yml b/.github/workflows/build_and_test_cpp.yml
index d32425a..c411076 100644
--- a/.github/workflows/build_and_test_cpp.yml
+++ b/.github/workflows/build_and_test_cpp.yml
@@ -62,14 +62,24 @@ jobs:
- name: Rust Cache
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
+ - name: Setup sccache
+ uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
+
- name: Build fluss-test-cluster binary
run: cargo build -p fluss-test-cluster
- name: Build C++ bindings and tests
working-directory: bindings/cpp
+ env:
+ SCCACHE_GHA_ENABLED: "true"
run: |
- cmake -B build -DFLUSS_ENABLE_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
+ cmake -B build \
+ -DFLUSS_ENABLE_TESTING=ON \
+ -DCMAKE_BUILD_TYPE=Debug \
+ -DCMAKE_C_COMPILER_LAUNCHER=sccache \
+ -DCMAKE_CXX_COMPILER_LAUNCHER=sccache
cmake --build build --parallel
+ sccache --show-stats
- name: Run C++ integration tests (parallel)
working-directory: bindings/cpp