Skip to content

Commit 4ac8046

Browse files
authored
Use ccache
1 parent b033ca9 commit 4ac8046

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/actions/build_pandas/action.yml

+19
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,25 @@ runs:
1414
micromamba list
1515
shell: bash -el {0}
1616

17+
- name: Make ccache-action key
18+
id: ccache-action-key
19+
run: |
20+
key="${{ runner.os }}--${{ runner.arch }}--${{ github.workflow }}"
21+
# Date: Daily invalidation of all ccaches as an extra safety measure.
22+
key="$key--$(/bin/date -u '+%Y%m%d')"
23+
# Python version: Separate caches for each Python version. This reduces the number of cache misses.
24+
key="$key--$(python -V)"
25+
# Cache version: Bump this number to manually invalidate the cache.
26+
key="$key--0"
27+
28+
echo "key=$key" >> $GITHUB_OUTPUT
29+
shell: bash
30+
- name: Use sccache
31+
uses: hendrikmuhs/[email protected]
32+
with:
33+
variant: sccache
34+
key: ${{ steps.ccache-action-key.outputs.key }}
35+
1736
- name: Build Pandas
1837
run: |
1938
if [[ ${{ inputs.editable }} == "true" ]]; then

0 commit comments

Comments
 (0)