ci: use h(Cargo.lock) for cargo caching
@@ -66,7 +66,7 @@ jobs:
uses: actions/cache@v1
with:
path: ~/.cargo
- key: ${{ matrix.platform.target }}-cargo-${{ matrix.toolchain.rust }}
+ key: ${{ matrix.platform.target }}-cargo-${{ hashFiles('Cargo.lock') }}
- name: Cache node modules
uses: actions/cache@v1
