Skip to content

Commit b38a021

Browse files
committed
fix: proactively clean CocoaPods cache to prevent boost archive corruption
1 parent 5e1aacd commit b38a021

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/e2e-ios.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,18 @@ jobs:
5151
path: example/ios/Pods
5252
key: pods-${{ hashFiles('**/Podfile.lock') }}
5353

54+
- name: Clean CocoaPods cache
55+
run: |
56+
rm -rf ~/Library/Caches/CocoaPods
57+
pod cache clean --all || true
58+
5459
- name: Install pods
5560
working-directory: example
5661
env:
5762
COCOAPODS_DISABLE_CHECKSUM: true
5863
run: |
5964
gem update cocoapods xcodeproj
60-
pod install --project-directory=ios || (rm -rf ~/Library/Caches/CocoaPods && pod cache clean --all && pod install --project-directory=ios)
65+
pod install --project-directory=ios || pod install --project-directory=ios
6166
6267
- name: Install applesimutils
6368
run: |

.github/workflows/mocha-ios.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,18 @@ jobs:
7474
path: example/ios/Pods
7575
key: pods-${{ hashFiles('**/Podfile.lock') }}
7676

77+
- name: Clean CocoaPods cache
78+
run: |
79+
rm -rf ~/Library/Caches/CocoaPods
80+
pod cache clean --all || true
81+
7782
- name: Install pods
7883
working-directory: example
7984
env:
8085
COCOAPODS_DISABLE_CHECKSUM: true
8186
run: |
8287
gem update cocoapods xcodeproj
83-
pod install --project-directory=ios || (rm -rf ~/Library/Caches/CocoaPods && pod cache clean --all && pod install --project-directory=ios)
88+
pod install --project-directory=ios || pod install --project-directory=ios
8489
8590
- name: Install applesimutils
8691
run: |

0 commit comments

Comments
 (0)