Comments (13)
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.
@vikrem @evandcoleman @mpdifran Released as v0.24.0.65
🥳
from rome.
@mpdifran you can check the referenced PR for more details
from rome.
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.
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.
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.
Oops, I somehow missed that. Thanks!
from rome.
You can also write some bash and:
- Compress your
Carthage
folder - Upload it to the cloud, using the sha of the cartfile.resolved as the identifier
When downloading:
- Use the sha of the cartfile.resolved to download the archive
- Unpack the archive, getting the
Carthage
folder in place
from rome.
@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.
@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.
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.
@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.
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)
- Xcode version specific upload/download HOT 4
- Concurrent downloads for remote cache HOT 1
- Nexus as example engine HOT 4
- [Question] Framework produces both static and dynamic output HOT 4
- Losing debug capability when using cached builds downloaded by Rome HOT 2
- Static folder isn't uploaded to remote server on Xcode 12 HOT 4
- Rome won't upload all downstream re-built frameworks HOT 3
- Rome sometimes printing partial output HOT 1
- Rome not failing when engine exit code is not zero HOT 1
- Issues running Rome with --no-skip-current HOT 6
- When using currentMap its not possible to reuse the generated binaries HOT 3
- Rome crashes when downloading dependencies HOT 1
- Skip bcsymbolmaps and dsyms when uploading/downloading a framework HOT 4
- Issues with Rome for xcframeworks HOT 24
- Failed to install latest ROME in MAC HOT 1
- using rome download --concurrently with --use-xcframeworks leads to io error: openBinaryFile: resource busy (file is locked)
- Add Rome arm64 release artifact HOT 3
- Error if carthage cache and rome cache have a file and directory with the same name
- Build failure with ghc 9.6.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rome.