Open Mattijah opened 2 years ago
@Mattijah are you restoring your Cocoapod source cache in addition to your binary cache? Otherwise, the pod source will have to download every time.
- name: Restore Cocoapod Source + System Cache + Pre-built Binaries
uses: actions/cache@v3
with:
path: |
Pods/
~/Library/Caches/CocoaPods/
~/.cocoapods/
.cocoapods-binary-cache/
key: pod
restore-keys: |
pod
I ended up using Rugby. More in particular: https://github.com/swiftyfinch/Rugby/discussions/71#discussioncomment-2491863, but I don't think the issue was in pods being re-downloaded. They were all part of the project (repo) actually. I don't remember the config now. Thanks for your reply though
Is there any way to speed up / skip Pods installation once all the Pods have been already pre-build and are available?
I'm running
cocoapods-binary-cache
on the CI and the step above is taking over 50% of the time. It is actually taking as long as if I was gonna build all dependencies without using the plugin, so I'm not gaining any time saved.To provide more details I'm using Github Actions and even though the task above takes 20 seconds to finish locally on my computer it is taking 7 minutes and 30 seconds on the CI. Compiling and running the rest of the app is then taking 6 minutes.
*I've tried using Ruby
3.0.0
&3.1.0
Edit: I've noticed there are properties like
prebuild_job
,prebuild_all_pods
, but setting them up seems to have no effect.