mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 16:23:25 +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
|
- 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: '**/Pods'
|
path: apps/expo/ios/Pods
|
||||||
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
|
key: ${{ runner.os }}-pods-${{ env.PODFILE_HASH }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pods-
|
${{ 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
|
- 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: '**/Pods'
|
path: apps/expo/ios/Pods
|
||||||
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
|
key: ${{ runner.os }}-pods-${{ env.PODFILE_HASH }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pods-
|
${{ runner.os }}-pods-
|
||||||
|
|
||||||
- name: Build iOS app
|
- name: Build iOS app
|
||||||
run: cd apps/expo && pnpm ipa
|
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
|
- 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: '**/Pods'
|
path: apps/expo/ios/Pods
|
||||||
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
|
key: ${{ runner.os }}-pods-${{ env.PODFILE_HASH }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pods-
|
${{ runner.os }}-pods-
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user