Fix pod caching issue

This commit is contained in:
Mingshen Sun 2020-12-30 14:50:41 -08:00
parent b7d6c1277c
commit 7886cc8423

View file

@ -11,7 +11,12 @@ jobs:
run: | run: |
brew install libtool automake cmake carthage go@1.14 swiftlint swiftformat brew install libtool automake cmake carthage go@1.14 swiftlint swiftformat
gem install bundler gem install bundler
bundle install - uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- uses: actions/cache@v2 - uses: actions/cache@v2
id: carthage-cache id: carthage-cache
with: with:
@ -20,7 +25,6 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-carthage- ${{ runner.os }}-carthage-
- uses: actions/cache@v2 - uses: actions/cache@v2
id: pods-cache
with: with:
path: Pods path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
@ -33,12 +37,13 @@ jobs:
key: ${{ runner.os }}-gopenpgp-${{ hashFiles('**/gopenpgp_build.sh') }} key: ${{ runner.os }}-gopenpgp-${{ hashFiles('**/gopenpgp_build.sh') }}
restore-keys: | restore-keys: |
${{ runner.os }}-gopenpgp- ${{ runner.os }}-gopenpgp-
- name: Bundle Install
run: bundle install --deployment
- name: Cocoapods
run: bundle exec pod install
- name: Carthage - name: Carthage
if: steps.carthage-cache.outputs.cache-hit != 'true' if: steps.carthage-cache.outputs.cache-hit != 'true'
run: ./scripts/wcarthage bootstrap --platform iOS --no-use-binaries --cache-builds run: ./scripts/wcarthage bootstrap --platform iOS --no-use-binaries --cache-builds
- name: Cocoapods
if: steps.pods-cache.outputs.cache-hit != 'true'
run: bundle exec pod install
- name: GopenPGP - name: GopenPGP
if: steps.gopenpgp-cache.outputs.cache-hit != 'true' if: steps.gopenpgp-cache.outputs.cache-hit != 'true'
run: | run: |