feat: proper pod cache keys

This commit is contained in:
Adrian Castro
2024-03-23 17:01:06 +01:00
parent 8fed2d5f82
commit 540085c7b1
3 changed files with 3 additions and 15 deletions

View File

@@ -101,15 +101,11 @@ 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: apps/expo/ios/Pods
key: ${{ runner.os }}-pods-${{ env.PODFILE_HASH }}
key: ${{ runner.os }}-pods-${{ hashFiles('apps/expo/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pods-

View File

@@ -92,15 +92,11 @@ 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: apps/expo/ios/Pods
key: ${{ runner.os }}-pods-${{ env.PODFILE_HASH }}
key: ${{ runner.os }}-pods-${{ hashFiles('apps/expo/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pods-

View File

@@ -120,15 +120,11 @@ 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: apps/expo/ios/Pods
key: ${{ runner.os }}-pods-${{ env.PODFILE_HASH }}
key: ${{ runner.os }}-pods-${{ hashFiles('apps/expo/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pods-