Skip to content

Commit 9cf11f4

Browse files
committed
Distinguish pants cache with python versions
1 parent 1aad191 commit 9cf11f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/lint.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,18 @@ jobs:
9090
COMMIT=$(git merge-base ${GITHUB_BASE_REF:-pants} HEAD | head -n1)
9191
echo MERGEBASE=${COMMIT}
9292
echo "::set-output name=MERGEBASE::${COMMIT}"
93-
- name: Cache Pants Caches
93+
- name: Cache Pants Caches (Python ${{ matrix.python-version }})
9494
uses: actions/cache@v2
9595
id: pants-cache
9696
with:
9797
path: |
9898
~/.cache/pants/setup
9999
~/.cache/pants/lmdb_store
100100
~/.cache/pants/named_caches
101-
key: ${{ runner.os }}-pants-${{ github.sha }}
101+
key: ${{ runner.os }}-pants-py${{ matrix.python-version }}-${{ github.sha }}
102102
restore-keys: |
103-
${{ runner.os }}-pants-${{ steps.pants-cache-commit.outputs.MERGEBASE }}
104-
${{ runner.os }}-pants-
103+
${{ runner.os }}-pants-py${{ matrix.python-version }}-${{ steps.pants-cache-commit.outputs.MERGEBASE }}
104+
${{ runner.os }}-pants-py${{ matrix.python-version }}-
105105
106106
- name: Cache Python Dependencies
107107
uses: actions/cache@v2

0 commit comments

Comments
 (0)