1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 10:07:54 -05:00

chore: cycle cache key (#15371)

This commit is contained in:
Bartek Iwańczuk 2022-08-01 14:18:34 +02:00 committed by crowlkats
parent 6ed2bf4043
commit b50088c247
No known key found for this signature in database
GPG key ID: A82C9D461FC483E8

View file

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