Skip to content

Commit 05832d2

Browse files
committed
Added rustc version to hash for build caches
1 parent 17b76f7 commit 05832d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ jobs:
3636
uses: actions/cache@v1
3737
with:
3838
path: target
39-
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
39+
key: ${{ runner.os }}-cargo-build-target-${{ steps.rustc.outputs.version }}-${{ hashFiles('**/Cargo.lock') }}
40+
restore-key: |
41+
${{ runner.os }}-cargo-build-target-${{ steps.rustc.outputs.version }}-
4042
4143
- name: Install stable Rust
4244
run: rustup update stable && rustup default stable

0 commit comments

Comments
 (0)