Skip to content

Commit

Permalink
apacheGH-41316: [CI][Python] Reduce CI time on macOS (apache#41378)
Browse files Browse the repository at this point in the history
### 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: apache#41316

Authored-by: Hyunseok Seo <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
llama90 authored May 10, 2024
1 parent f8d3b10 commit 7aea8bf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 7aea8bf

Please sign in to comment.