chore: attempt to cache cocoapods

This commit is contained in:
Adrian Castro
2024-03-23 16:30:55 +01:00
parent c1268258c7
commit 8fed2d5f82
3 changed files with 20 additions and 8 deletions

View File

@@ -101,11 +101,15 @@ jobs:
- name: Install dependencies
run: pnpm install
- name: Generate Podfile.lock hash
id: podfile_hash
run: echo "PODFILE_HASH=$(shasum apps/expo/ios/Podfile.lock | awk '{ print $1 }')" >> $GITHUB_ENV
- name: Cache Pods
uses: actions/cache@v4
with:
path: '**/Pods'
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
path: apps/expo/ios/Pods
key: ${{ runner.os }}-pods-${{ env.PODFILE_HASH }}
restore-keys: |
${{ runner.os }}-pods-

View File

@@ -92,13 +92,17 @@ jobs:
- name: Install dependencies
run: pnpm install
- name: Generate Podfile.lock hash
id: podfile_hash
run: echo "PODFILE_HASH=$(shasum apps/expo/ios/Podfile.lock | awk '{ print $1 }')" >> $GITHUB_ENV
- name: Cache Pods
uses: actions/cache@v4
with:
path: '**/Pods'
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
path: apps/expo/ios/Pods
key: ${{ runner.os }}-pods-${{ env.PODFILE_HASH }}
restore-keys: |
${{ runner.os }}-pods-
- name: Build iOS app
run: cd apps/expo && pnpm ipa

View File

@@ -120,11 +120,15 @@ jobs:
- name: Install dependencies
run: pnpm install
- name: Generate Podfile.lock hash
id: podfile_hash
run: echo "PODFILE_HASH=$(shasum apps/expo/ios/Podfile.lock | awk '{ print $1 }')" >> $GITHUB_ENV
- name: Cache Pods
uses: actions/cache@v4
with:
path: '**/Pods'
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
path: apps/expo/ios/Pods
key: ${{ runner.os }}-pods-${{ env.PODFILE_HASH }}
restore-keys: |
${{ runner.os }}-pods-