diff options
author | Kazuhiro NISHIYAMA <znz@users.noreply.github.com> | 2019-11-12 17:22:19 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-12 17:22:19 +0900 |
commit | b41a19f92fdd9c8567e0650ceebb72386a96e395 (patch) | |
tree | 2ec1b8e448761f8cf705a81e9d4e27a728f8ebd2 /.github/workflows/windows.yml | |
parent | a58b4eee25b79432d98a1c665edaf5ec0a054b2e (diff) | |
download | ruby-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/workflows/windows.yml')
-rw-r--r-- | .github/workflows/windows.yml | 6 |
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: | |