Cache Pods in any path that contains "Pods"

This commit is contained in:
Marc Rousavy 2021-03-11 18:36:35 +01:00
parent c84fa68357
commit 832d6155eb
2 changed files with 2 additions and 3 deletions

View File

@ -47,12 +47,12 @@ jobs:
- name: Restore Pods cache - name: Restore Pods cache
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: example/ios/Pods path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-pods- ${{ runner.os }}-pods-
- name: Install Pods - name: Install Pods
run: pod install # TODO: Optimize this (see https://guides.cocoapods.org/plugins/optimising-ci-times.html) run: pod install # TODO: Optimize "pod install" step (see https://guides.cocoapods.org/plugins/optimising-ci-times.html)
- name: Build App - name: Build App
run: "xcodebuild \ run: "xcodebuild \
-workspace VisionCameraExample.xcworkspace \ -workspace VisionCameraExample.xcworkspace \

View File

@ -22,7 +22,6 @@ jobs:
with: with:
args: --strict args: --strict
env: env:
# DIFF_BASE: ${{ github.base_ref }}
WORKING_DIRECTORY: ios WORKING_DIRECTORY: ios
SwiftFormat: SwiftFormat:
runs-on: macOS-latest runs-on: macOS-latest