File tree 3 files changed +15
-13
lines changed
3 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 5
5
steps :
6
6
- name : Set up Ccache
7
7
uses : ./.github/actions/setup-ccache
8
- with :
9
- extra-cache-key : ${{ steps.env-detail.outputs.python-version }}
10
8
11
9
- name : Build Pandas
12
10
if : ${{ runner.os != 'Windows' }}
Original file line number Diff line number Diff line change 1
1
name : Setup sccache
2
- inputs :
3
- extra-cache-key :
4
- required : false
5
- default : ' '
6
2
runs :
7
3
using : composite
8
4
steps :
9
- # Daily invalidation of all ccaches as an extra safety measure.
10
- - name : Get Date
11
- id : get-date
12
- run : echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT
5
+ - name : Make cache key
6
+ id : cache-key
7
+ run : |
8
+ key="${{ runner.os }}--${{ runner.arch }}--${{ github.workflow }}--${{ inputs.extra-cache-key }}"
9
+ # Date: Daily invalidation of all ccaches as an extra safety measure.
10
+ key="$key--$(/bin/date -u '+%Y%m%d')"
11
+ # Python version: Separate caches for each Python version. This reduces the number of cache misses.
12
+ key="$key--$(python -V)"
13
+ # Cache version: Bump this number to manually invalidate the cache.
14
+ key="$key--0"
15
+
16
+ echo "cache-key=$key" >> $GITHUB_OUTPUT
13
17
shell : bash
14
18
15
19
# On Windows, for some reason the default temporary directory provided to sccache
24
28
uses :
hendrikmuhs/[email protected]
25
29
with :
26
30
variant : sccache
27
- key : ${{ env.CACHE_VERSION }}--${{ runner.os }}--${{ runner.arch }}--${{ github.workflow }}--${{ steps.get-date .outputs.today }}--${{ inputs.extra- cache-key }}
31
+ key : ${{ steps.cache-key .outputs.cache-key }}
28
32
env :
29
33
TMP : " ${{ steps.mktemp.outputs.tmpdir }}"
30
- # Bump this number to manually invalidate the cache.
31
- CACHE_VERSION : 0
Original file line number Diff line number Diff line change 19
19
run : |
20
20
grep -q ' - pyarrow' ${{ inputs.environment-file }}
21
21
sed -i"" -e "s/ - pyarrow/ - pyarrow=${{ inputs.pyarrow-version }}/" ${{ inputs.environment-file }}
22
+ echo ::group::{Environment Detail}
22
23
cat ${{ inputs.environment-file }}
24
+ echo ::endgroup::
23
25
shell : bash
24
26
if : ${{ inputs.pyarrow-version }}
25
27
You can’t perform that action at this time.
0 commit comments