GithubHelp home page GithubHelp logo

Comments (13)

DrewKiino avatar DrewKiino commented on August 26, 2024 7

Hey fellow developers, so we all know that achieving remote caching is important for many of us especially in upcoming startups and such. There isn't much tooling out there that helps us achieve this and given that .xcframeworks has come into the mix, most of us are waiting on existing tooling to update as well as unfortunate as that sounds.

So my team and I went ahead and built Punic as we couldn't wait any longer for existing tools to catch up.

Feel free to check out the CLI, it exclusively supports .xcframework and aws for remote caching and our company has been using it for the past month or so in our CI pipeline. Finally moving up to iOS 14.0. Feel free to check it out and let us know if this helps.

from rome.

tmspzz avatar tmspzz commented on August 26, 2024 4

@vikrem @evandcoleman @mpdifran Released as v0.24.0.65 🥳

from rome.

tmspzz avatar tmspzz commented on August 26, 2024 2

@mpdifran you can check the referenced PR for more details

from rome.

tmspzz avatar tmspzz commented on August 26, 2024 1

You can also write some bash

Sure, but it's to avoid uploading/downloading the entire folder and to be able to share single cached binaries the reason why I wrote this tool in the first place.

The are other solutions that just do exactly that.

from rome.

tmspzz avatar tmspzz commented on August 26, 2024 1

That's very cool, thanks a lot. We still have one fat framework (.framework instead of .xcframework) in the dependency collection. Do you know, how we can mix xcframeworks and this one framework the best way with these changes?

Run Rome twice?

from rome.

mpdifran avatar mpdifran commented on August 26, 2024

Now that Carthage 0.37.0 is out, it's required to build using xcframeworks (this is what I'm seeing for my project, not sure if this is entirely the case).

Any idea on when work can get started on this? Is it as easy as changing the list of files to cache?

from rome.

mpdifran avatar mpdifran commented on August 26, 2024

Oops, I somehow missed that. Thanks!

from rome.

acecilia avatar acecilia commented on August 26, 2024

You can also write some bash and:

  1. Compress your Carthage folder
  2. Upload it to the cloud, using the sha of the cartfile.resolved as the identifier

When downloading:

  1. Use the sha of the cartfile.resolved to download the archive
  2. Unpack the archive, getting the Carthage folder in place

from rome.

acecilia avatar acecilia commented on August 26, 2024

@tmspzz Sure, thanks 🙌

I just wanted to comment it in case it is helpful. We were using rome, but after some time we realized that our carthage dependencies (1GB) are only 400MB compressed, and we dont change them so usually, so downloading/uploading the whole folder is a good compromise: 400MB with a good internet connection takes very short time.

Then we use bazel to avoid re-downloading the archive it every time.

But if you want to avoid downloading if the carthage cache is already correct its also possible: just get a sha of all the contents of the Carthage folder and compare it with the sha of the cached folder (which you can place as the name of the tar.gz archive): if sha matches, Carthage folder is correct, otherwise re-download

from rome.

mpdifran avatar mpdifran commented on August 26, 2024

@tmspzz I'm not super familiar on the Rome codebase, but please let me know how I can help review / test to get this over the line!

from rome.

choli avatar choli commented on August 26, 2024

That's very cool, thanks a lot. We still have one fat framework (.framework instead of .xcframework) in the dependency collection. Do you know, how we can mix xcframeworks and this one framework the best way with these changes?

from rome.

mpdifran avatar mpdifran commented on August 26, 2024

@choli I'm pretty sure you have to go "all in" with XCFrameworks to leverage this new flag. I think that's the case for both Carthage and Rome.

from rome.

choli avatar choli commented on August 26, 2024

Ok, running Rome twice was my first approach and yes, it does work. So I'll keep it that way. Thanks 👍🏽

from rome.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.