mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 14:33:26 +00:00
chore: attempt to cache cocoapods
This commit is contained in:
8
.github/workflows/build-mobile-comment.yml
vendored
8
.github/workflows/build-mobile-comment.yml
vendored
@@ -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-
|
||||
|
||||
|
12
.github/workflows/build-mobile.yml
vendored
12
.github/workflows/build-mobile.yml
vendored
@@ -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
|
||||
|
8
.github/workflows/release-mobile.yml
vendored
8
.github/workflows/release-mobile.yml
vendored
@@ -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-
|
||||
|
||||
|
Reference in New Issue
Block a user