Add cache version to the github action cache

This commit is contained in:
Mingshen Sun 2020-12-31 23:30:38 -08:00
parent 394fdfb67e
commit 3462e6673f
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
2 changed files with 8 additions and 8 deletions

View file

@ -20,27 +20,27 @@ jobs:
- uses: actions/cache@v2 - uses: actions/cache@v2
with: with:
path: vendor/bundle path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} key: ${{ runner.os }}-gems-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-gems- ${{ runner.os }}-gems-
- uses: actions/cache@v2 - uses: actions/cache@v2
id: carthage-cache id: carthage-cache
with: with:
path: Carthage path: Carthage
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }} key: ${{ runner.os }}-carthage-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/Cartfile.resolved') }}
restore-keys: | restore-keys: |
${{ runner.os }}-carthage- ${{ runner.os }}-carthage-
- uses: actions/cache@v2 - uses: actions/cache@v2
with: with:
path: Pods path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} key: ${{ runner.os }}-pods-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/Podfile.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-pods- ${{ runner.os }}-pods-
- uses: actions/cache@v2 - uses: actions/cache@v2
id: gopenpgp-cache id: gopenpgp-cache
with: with:
path: go path: go
key: ${{ runner.os }}-gopenpgp-${{ hashFiles('**/gopenpgp_build.sh') }} key: ${{ runner.os }}-gopenpgp-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/gopenpgp_build.sh') }}
restore-keys: | restore-keys: |
${{ runner.os }}-gopenpgp- ${{ runner.os }}-gopenpgp-
- name: Bundle Install - name: Bundle Install

View file

@ -14,27 +14,27 @@ jobs:
- uses: actions/cache@v2 - uses: actions/cache@v2
with: with:
path: vendor/bundle path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} key: ${{ runner.os }}-gems-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-gems- ${{ runner.os }}-gems-
- uses: actions/cache@v2 - uses: actions/cache@v2
id: carthage-cache id: carthage-cache
with: with:
path: Carthage path: Carthage
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }} key: ${{ runner.os }}-carthage-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/Cartfile.resolved') }}
restore-keys: | restore-keys: |
${{ runner.os }}-carthage- ${{ runner.os }}-carthage-
- uses: actions/cache@v2 - uses: actions/cache@v2
with: with:
path: Pods path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} key: ${{ runner.os }}-pods-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/Podfile.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-pods- ${{ runner.os }}-pods-
- uses: actions/cache@v2 - uses: actions/cache@v2
id: gopenpgp-cache id: gopenpgp-cache
with: with:
path: go path: go
key: ${{ runner.os }}-gopenpgp-${{ hashFiles('**/gopenpgp_build.sh') }} key: ${{ runner.os }}-gopenpgp-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/gopenpgp_build.sh') }}
restore-keys: | restore-keys: |
${{ runner.os }}-gopenpgp- ${{ runner.os }}-gopenpgp-
- name: Bundle Install - name: Bundle Install