1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-03 04:48:52 -05:00

ci: cycle cache key (#13292)

This commit is contained in:
Bartek Iwańczuk 2022-01-06 10:52:08 +01:00 committed by GitHub
parent c40419b55b
commit fbe759ac94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -262,7 +262,7 @@ jobs:
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git/db
key: 2-cargo-home-${{ matrix.os }}-${{ hashFiles('Cargo.lock') }}
key: 3-cargo-home-${{ matrix.os }}-${{ hashFiles('Cargo.lock') }}
# In main branch, always creates fresh cache
- name: Cache build output (main)
@ -278,7 +278,7 @@ jobs:
!./target/*/*.zip
!./target/*/*.tar.gz
key: |
2-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ github.sha }}
3-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ github.sha }}
# Restore cache from the latest 'main' branch build.
- name: Cache build output (PR)
@ -294,7 +294,7 @@ jobs:
!./target/*/*.tar.gz
key: never_saved
restore-keys: |
2-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-
3-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-
# Don't save cache after building PRs or branches other than 'main'.
- name: Skip save cache (PR)