Skip to content

Commit 16e1eb7

Browse files
committed
ci: remove manual pod install step
1 parent ffca33d commit 16e1eb7

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

.github/workflows/build-templates.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,9 @@ jobs:
232232
with:
233233
xcode-version: ${{ env.XCODE_VERSION }}
234234

235-
- name: Restore cocoapods
235+
- name: Cache cocoapods
236236
if: env.ios_build == 1 && env.turbo_cache_hit_ios != 1
237-
id: library-cocoapods-cache
238-
uses: actions/cache/restore@v4
237+
uses: actions/cache@v4
239238
with:
240239
path: |
241240
${{ env.work_dir }}/**/ios/Pods
@@ -246,22 +245,16 @@ jobs:
246245
${{ runner.os }}-library-cocoapods-${{ hashFiles(format('{0}/example/ios/Podfile', env.work_dir)) }}-
247246
${{ runner.os }}-library-cocoapods-
248247
249-
- name: Install cocoapods
250-
if: env.ios_build == 1 && env.turbo_cache_hit_ios != 1 && steps.library-cocoapods-cache.outputs.cache-hit != 'true'
248+
249+
- name: Update cocoapod repo
250+
if: env.ios_build == 1 && env.turbo_cache_hit_ios != 1
251251
working-directory: ${{ env.work_dir }}
252252
run: |
253253
cd example
254254
bundle install
255-
bundle exec pod install --project-directory=ios
256-
257-
- name: Cache cocoapods
258-
if: env.ios_build == 1 && env.turbo_cache_hit_ios != 1 && steps.library-cocoapods-cache.outputs.cache-hit != 'true'
259-
uses: actions/cache/save@v4
260-
with:
261-
path: |
262-
${{ env.work_dir }}/**/ios/Pods
263-
${{ env.work_dir }}/**/ios/Podfile.lock
264-
key: ${{ steps.library-cocoapods-cache.outputs.cache-primary-key }}
255+
cd ios
256+
bundle exec pod deintegrate
257+
bundle exec pod repo update --verbose
265258
266259
- name: Build example (iOS)
267260
if: env.ios_build == 1

packages/create-react-native-library/templates/native-common/{%- project.name %}.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Pod::Spec.new do |s|
2424
2525
<% if (project.moduleConfig === "nitro-modules") { -%>
2626
s.source_files = [
27-
"ios/**/*.{swift}",=
27+
"ios/**/*.{swift}",
2828
"ios/**/*.{m,mm}",
2929
"cpp/**/*.{hpp,cpp}",
3030
]

0 commit comments

Comments
 (0)