Skip to content

Commit c5bd013

Browse files
committed
Use Mozilla-Actions/sccache-action
1 parent b8d4f77 commit c5bd013

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

.github/actions/build_pandas/action.yml

+3-17
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,8 @@ 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
3017
- name: Use sccache
31-
uses: hendrikmuhs/[email protected]
32-
with:
33-
variant: sccache
34-
key: ${{ steps.ccache-action-key.outputs.key }}
18+
uses: https://github.com/Mozilla-Actions/sccache-action
3519

3620
- name: Build Pandas
3721
run: |
@@ -41,3 +25,5 @@ runs:
4125
pip install . --no-build-isolation -v
4226
fi
4327
shell: bash -el {0}
28+
env:
29+
SCCACHE_GHA_ENABLED: true

0 commit comments

Comments
 (0)