Skip to content

Caching CocoaPods takes long time to restore #1592

Open
@IgorP-Grip

Description

@IgorP-Grip

I am trying to setup Github action for running unit tests on the iOS project but I am getting strange results while executing it.

First build without cached CocoaPods is taking around 25 min but if cache is available just for restoring it, it takes more then a hour just for that step. I am not sure if I am doing something wrong but I would say that everything is set as it should be.

Also tried to change paths for caching step, always getting same result, and build speed is not changed at all.

First build, cache not uploaded:
Image

Cache exists:

Image

Cache step:
# CocoaPods cache - name: Cache CocoaPods uses: actions/cache@v4 with: path: | App/Pods ~/Library/Caches/CocoaPods ~/.cocoapods key: ${{ runner.os }}-pods-${{ hashFiles('**/versionFile.swift') }} restore-keys: | ${{ runner.os }}-pods-${{ hashFiles('**/versionFile.swift') }}

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions