Skip to content

Commit 63d7a0e

Browse files
committed
[GitHub] Clean hash in cache keys
1 parent 24681cd commit 63d7a0e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
id: pybind11_cache
5454
with:
5555
path: /tmp/pybind11
56-
key: pybind11_${{ env.GIT_BRANCH }}_${{ matrix.os }}_${{ hashFiles('**/lockfiles') }}
56+
key: pybind11_${{ env.GIT_BRANCH }}_${{ matrix.os }}_${{ hashFiles('.github/workflows/*.yml') }}
5757

5858
- name: Build and install pybind11
5959
if: steps.pybind11_cache.outputs.cache-hit != 'true'
@@ -80,7 +80,7 @@ jobs:
8080
uses: actions/cache@v2
8181
with:
8282
path: .ccache
83-
key: ccache_${{ env.GIT_BRANCH }}_${{ matrix.os }}_${{ hashFiles('**/lockfiles') }}
83+
key: ccache_${{ env.GIT_BRANCH }}_${{ matrix.os }}_${{ hashFiles('.github/workflows/*.yml') }}
8484

8585
- name: Build
8686
env:

.github/workflows/ubuntu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
id: pybind11_cache
5454
with:
5555
path: /tmp/pybind11
56-
key: pybind11_${{ env.GIT_BRANCH }}_${{ matrix.os }}_${{ hashFiles('**/lockfiles') }}
56+
key: pybind11_${{ env.GIT_BRANCH }}_${{ matrix.os }}_${{ hashFiles('.github/workflows/*.yml') }}
5757

5858
- name: Build and install pybind11
5959
if: steps.pybind11_cache.outputs.cache-hit != 'true'
@@ -80,7 +80,7 @@ jobs:
8080
uses: actions/cache@v2
8181
with:
8282
path: .ccache
83-
key: ccache_${{ env.GIT_BRANCH }}_${{ matrix.os }}_${{ hashFiles('**/lockfiles') }}
83+
key: ccache_${{ env.GIT_BRANCH }}_${{ matrix.os }}_${{ hashFiles('.github/workflows/*.yml') }}
8484

8585
- name: Build
8686
env:

0 commit comments

Comments
 (0)