Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up Pods installation #103

Open
Mattijah opened this issue Apr 1, 2022 · 2 comments
Open

Speed up Pods installation #103

Mattijah opened this issue Apr 1, 2022 · 2 comments

Comments

@Mattijah
Copy link

Mattijah commented Apr 1, 2022

Is there any way to speed up / skip Pods installation once all the Pods have been already pre-build and are available?

-----------------------------------------
馃殌  Prebuild frameworks
-----------------------------------------
...
Validate prebuilt cache
Cache validation: hit (81) [...]
Prebuilding...
Installing [Podname]...
Installing [Podname]...
...
Prebuild frameworks (total 0): []
No changes in prebuild

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.

@alexfanatics
Copy link

@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

@Mattijah
Copy link
Author

I ended up using Rugby. More in particular: swiftyfinch/Rugby#71 (comment), 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants