Skip to content

Commit 6c6cebb

Browse files
committed
Add OS type to the cache key.
1 parent 4710f75 commit 6c6cebb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/cache@v3
2323
id: pip-cache
2424
with:
25-
key: ${{ env.pythonLocation }}-pip-${{ hashFiles('**/requirements.txt') }}
25+
key: ${{ runner.os }}-${{ env.pythonLocation }}-pip-${{ hashFiles('**/requirements.txt') }}
2626
path: ${{ env.pythonLocation }}
2727
if: steps.pip-cache.outputs.cache-hit != 'true'
2828

@@ -63,7 +63,7 @@ jobs:
6363
id: python-cache
6464
uses: actions/cache@v3
6565
with:
66-
key: ${{ env.pythonLocation }}-pip-${{ hashFiles('**/requirements.txt') }}
66+
key: ${{ runner.os }}-${{ env.pythonLocation }}-pip-${{ hashFiles('**/requirements.txt') }}
6767
path: ${{ env.pythonLocation }}
6868

6969
- name: Generate fitting data

0 commit comments

Comments
 (0)