Use version rather than OS for cache

This commit is contained in:
lights0123 2020-09-27 15:06:23 -04:00
parent 492d098e7a
commit 94d191ab9c
No known key found for this signature in database
GPG key ID: 28F315322E37972F
2 changed files with 4 additions and 4 deletions

View file

@ -23,7 +23,7 @@ jobs:
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ matrix.platform }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: actions/cache@v2
@ -33,7 +33,7 @@ jobs:
~/.cargo/git
~/.cargo/bin
src-tauri/target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
key: ${{ matrix.platform }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: setup node

View file

@ -22,7 +22,7 @@ jobs:
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ matrix.platform }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: actions/cache@v2
@ -32,7 +32,7 @@ jobs:
~/.cargo/git
~/.cargo/bin
src-tauri/target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
key: ${{ matrix.platform }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: setup node