Skip to content

Commit b41a19f

Browse files
authored
Add matrix.os to cache key (ruby#2671)
* Add matrix.os to cache key * Use multi-line string instead of array ref actions/cache#44
1 parent a58b4ee commit b41a19f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: .github/workflows/windows.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,19 @@ jobs:
2525
- uses: actions/cache@v1
2626
with:
2727
path: C:\vcpkg\downloads
28-
key: ${{ runner.os }}-vcpkg-download-${{ github.sha }}
28+
key: ${{ runner.os }}-vcpkg-download-${{ matrix.os }}-${{ github.sha }}
2929
restore-keys: |
30+
${{ runner.os }}-vcpkg-download-${{ matrix.os }}-
3031
${{ runner.os }}-vcpkg-download-
3132
- name: Install libraries with vcpkg
3233
run: |
3334
vcpkg --triplet x64-windows install readline zlib
3435
- uses: actions/cache@v1
3536
with:
3637
path: C:\Users\runneradmin\AppData\Local\Temp\chocolatey
37-
key: ${{ runner.os }}-chocolatey-${{ github.sha }}
38+
key: ${{ runner.os }}-chocolatey-${{ matrix.os }}-${{ github.sha }}
3839
restore-keys: |
40+
${{ runner.os }}-chocolatey-${{ matrix.os }}-
3941
${{ runner.os }}-chocolatey-
4042
- name: Install libraries with chocolatey
4143
run: |

0 commit comments

Comments
 (0)