Skip to content

Commit

Permalink
chore: cycle cache key (denoland#15371)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju authored Aug 1, 2022
1 parent d81c5b5 commit 03377ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 03377ca

Please sign in to comment.