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 c2e44a8c feat(ci): Add ccache support for faster builds (#882)
c2e44a8c is described below

commit c2e44a8cbbe00ba0d1ed0958f730335fd3a532c2
Author: Jason Yao <[email protected]>
AuthorDate: Sat Feb 28 10:11:38 2026 +0800

    feat(ci): Add ccache support for faster builds (#882)
    
    * feat(ci): Add configurable ccache support with CI caching
    
    Signed-off-by: syaojun <[email protected]>
    
    * fix: change name for consistency
    
    Signed-off-by: syaojun <[email protected]>
    
    * fix(ci): optimize benchmark link arrow in MacOS
    
    Signed-off-by: syaojun <[email protected]>
    
    * fix(ci): maintain consistency with other systems.
    
    Signed-off-by: syaojun <[email protected]>
    
    * fix(ci): macos link static parquet.
    
    Signed-off-by: syaojun <[email protected]>
    
    * fix(ci): add default path on macos.
    
    Signed-off-by: syaojun <[email protected]>
    
    * fix(ci): simplify cmake for benchmark on macos.
    
    Signed-off-by: syaojun <[email protected]>
    
    * fix(ci): simplify cmake for benchmark on macos .
    
    Signed-off-by: syaojun <[email protected]>
    
    * fix(ci): add link problem for benchmark
    
    Signed-off-by: syaojun <[email protected]>
    
    * fix(ci): fast compile on MacOS
    
    Signed-off-by: syaojun <[email protected]>
    
    * fix(ci): restore cmakelists.txt
    
    Signed-off-by: syaojun <[email protected]>
    
    * fix(ci): restore cmakelists.txt 2
    
    Signed-off-by: syaojun <[email protected]>
    
    ---------
    
    Signed-off-by: syaojun <[email protected]>
---
 .github/workflows/ci-nightly.yml |  9 +++++----
 .github/workflows/ci.yml         | 18 ++++++++++++++++++
 2 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/ci-nightly.yml b/.github/workflows/ci-nightly.yml
index a41b73fb..98db670f 100644
--- a/.github/workflows/ci-nightly.yml
+++ b/.github/workflows/ci-nightly.yml
@@ -35,13 +35,14 @@ jobs:
       with:
           submodules: true
 
-    - name: Cache for ccache
-      uses: actions/cache@v3
+    - name: Cache ccache
+      uses: actions/cache@v4
       with:
         path: ~/.ccache
-        key: ${{ matrix.os }}-build-ccache-${{ hashFiles('**/git-modules.txt') 
}}
+        key: ${{ runner.os }}-nightly-ccache-${{ github.head_ref || 
github.ref_name }}-${{ github.run_id }}
         restore-keys: |
-          ${{ matrix.os }}-build-ccache-
+          ${{ runner.os }}-nightly-ccache-${{ github.head_ref || 
github.ref_name }}-
+          ${{ runner.os }}-nightly-ccache-
 
     - name: Install dependencies
       run: |
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index cef6f124..2cf98832 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -50,6 +50,15 @@ jobs:
       with:
           submodules: true
 
+    - name: Cache ccache
+      uses: actions/cache@v4
+      with:
+        path: ~/.ccache
+        key: ${{ runner.os }}-ccache-${{ github.head_ref || github.ref_name 
}}-${{ github.run_id }}
+        restore-keys: |
+          ${{ runner.os }}-ccache-${{ github.head_ref || github.ref_name }}-
+          ${{ runner.os }}-ccache-
+
     - name: Install dependencies
       run: |
 
@@ -203,6 +212,15 @@ jobs:
       with:
           submodules: true
 
+    - name: Cache ccache
+      uses: actions/cache@v4
+      with:
+        path: ~/Library/Caches/ccache
+        key: ${{ runner.os }}-ccache-${{ github.head_ref || github.ref_name 
}}-${{ github.run_id }}
+        restore-keys: |
+          ${{ runner.os }}-ccache-${{ github.head_ref || github.ref_name }}-
+          ${{ runner.os }}-ccache-
+
     - name: Install dependencies
       run: |
         brew bundle --file=cpp/Brewfile


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to