mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13:25 +00:00
feat: proper pod cache keys
This commit is contained in:
6
.github/workflows/build-mobile-comment.yml
vendored
6
.github/workflows/build-mobile-comment.yml
vendored
@@ -101,15 +101,11 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
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
|
- name: Cache Pods
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: apps/expo/ios/Pods
|
path: apps/expo/ios/Pods
|
||||||
key: ${{ runner.os }}-pods-${{ env.PODFILE_HASH }}
|
key: ${{ runner.os }}-pods-${{ hashFiles('apps/expo/pnpm-lock.yaml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pods-
|
${{ runner.os }}-pods-
|
||||||
|
|
||||||
|
6
.github/workflows/build-mobile.yml
vendored
6
.github/workflows/build-mobile.yml
vendored
@@ -92,15 +92,11 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
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
|
- name: Cache Pods
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: apps/expo/ios/Pods
|
path: apps/expo/ios/Pods
|
||||||
key: ${{ runner.os }}-pods-${{ env.PODFILE_HASH }}
|
key: ${{ runner.os }}-pods-${{ hashFiles('apps/expo/pnpm-lock.yaml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pods-
|
${{ runner.os }}-pods-
|
||||||
|
|
||||||
|
6
.github/workflows/release-mobile.yml
vendored
6
.github/workflows/release-mobile.yml
vendored
@@ -120,15 +120,11 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
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
|
- name: Cache Pods
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: apps/expo/ios/Pods
|
path: apps/expo/ios/Pods
|
||||||
key: ${{ runner.os }}-pods-${{ env.PODFILE_HASH }}
|
key: ${{ runner.os }}-pods-${{ hashFiles('apps/expo/pnpm-lock.yaml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pods-
|
${{ runner.os }}-pods-
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user