This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 7aea8bf7a6 GH-41316: [CI][Python] Reduce CI time on macOS (#41378)
7aea8bf7a6 is described below

commit 7aea8bf7a65d679bd71d973b358f997eb3b6c6af
Author: Hyunseok Seo <[email protected]>
AuthorDate: Fri May 10 23:58:10 2024 +0900

    GH-41316: [CI][Python] Reduce CI time on macOS (#41378)
    
    
    
    ### Rationale for this change
    
    Reduce CI time for python build on macos-12 and macos-14 using ccache
    
    ### What changes are included in this PR?
    
    Add ccache for macos-12 and macos-14
    
    ### Are these changes tested?
    
    Check the cache hit rate
    
    ### Are there any user-facing changes?
    
    No
    
    * GitHub Issue: #41316
    
    Authored-by: Hyunseok Seo <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 .github/workflows/python.yml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
index 15056961f8..a568f8346e 100644
--- a/.github/workflows/python.yml
+++ b/.github/workflows/python.yml
@@ -182,6 +182,19 @@ jobs:
           python -m pip install \
             -r python/requirements-build.txt \
             -r python/requirements-test.txt
+      - name: Setup ccache
+        shell: bash
+        run: ci/scripts/ccache_setup.sh
+      - name: ccache info
+        id: ccache-info
+        shell: bash
+        run: echo "cache-dir=$(ccache --get-config cache_dir)" >> 
$GITHUB_OUTPUT
+      - name: Cache ccache
+        uses: actions/cache@v4
+        with:
+          path: ${{ steps.ccache-info.outputs.cache-dir }}
+          key: python-ccache-macos-${{ matrix.macos-version }}-${{ 
hashFiles('cpp/**', 'python/**') }}
+          restore-keys: python-ccache-macos-${{ matrix.macos-version }}-
       - name: Build
         shell: bash
         run: |

Reply via email to