Skip to content

Commit 80ce52b

Browse files
committed
Fixes
1 parent 5e2552d commit 80ce52b

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

.github/actions/build-pandas/action.yml

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ runs:
55
steps:
66
- name: Set up Ccache
77
uses: ./.github/actions/setup-ccache
8-
with:
9-
extra-cache-key: ${{ steps.env-detail.outputs.python-version }}
108

119
- name: Build Pandas
1210
if : ${{ runner.os != 'Windows' }}

.github/actions/setup-ccache/action.yml

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
name: Setup sccache
2-
inputs:
3-
extra-cache-key:
4-
required: false
5-
default: ''
62
runs:
73
using: composite
84
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
1317
shell: bash
1418

1519
# On Windows, for some reason the default temporary directory provided to sccache
@@ -24,8 +28,6 @@ runs:
2428
uses: hendrikmuhs/[email protected]
2529
with:
2630
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 }}
2832
env:
2933
TMP: "${{ steps.mktemp.outputs.tmpdir }}"
30-
# Bump this number to manually invalidate the cache.
31-
CACHE_VERSION: 0

.github/actions/setup-conda/action.yml

+2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ runs:
1919
run: |
2020
grep -q ' - pyarrow' ${{ inputs.environment-file }}
2121
sed -i"" -e "s/ - pyarrow/ - pyarrow=${{ inputs.pyarrow-version }}/" ${{ inputs.environment-file }}
22+
echo ::group::{Environment Detail}
2223
cat ${{ inputs.environment-file }}
24+
echo ::endgroup::
2325
shell: bash
2426
if: ${{ inputs.pyarrow-version }}
2527

0 commit comments

Comments
 (0)