aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <znz@users.noreply.github.com>2019-11-12 17:22:19 +0900
committerGitHub <noreply@github.com>2019-11-12 17:22:19 +0900
commitb41a19f92fdd9c8567e0650ceebb72386a96e395 (patch)
tree2ec1b8e448761f8cf705a81e9d4e27a728f8ebd2 /.github
parenta58b4eee25b79432d98a1c665edaf5ec0a054b2e (diff)
downloadruby-b41a19f92fdd9c8567e0650ceebb72386a96e395.tar.gz
Add matrix.os to cache key (#2671)
* Add matrix.os to cache key * Use multi-line string instead of array ref https://github.com/actions/cache/issues/44
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/windows.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index abb362002d..96bcbcb135 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -25,8 +25,9 @@ jobs:
- uses: actions/cache@v1
with:
path: C:\vcpkg\downloads
- key: ${{ runner.os }}-vcpkg-download-${{ github.sha }}
+ key: ${{ runner.os }}-vcpkg-download-${{ matrix.os }}-${{ github.sha }}
restore-keys: |
+ ${{ runner.os }}-vcpkg-download-${{ matrix.os }}-
${{ runner.os }}-vcpkg-download-
- name: Install libraries with vcpkg
run: |
@@ -34,8 +35,9 @@ jobs:
- uses: actions/cache@v1
with:
path: C:\Users\runneradmin\AppData\Local\Temp\chocolatey
- key: ${{ runner.os }}-chocolatey-${{ github.sha }}
+ key: ${{ runner.os }}-chocolatey-${{ matrix.os }}-${{ github.sha }}
restore-keys: |
+ ${{ runner.os }}-chocolatey-${{ matrix.os }}-
${{ runner.os }}-chocolatey-
- name: Install libraries with chocolatey
run: |