-
-
Notifications
You must be signed in to change notification settings - Fork 120
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: build docker images for linux/arm64 #496
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! This technically looks good to me, however I would like to know first what motivates this change.
In particular, there's 2 aspects I'm uncertain about:
- How costly are the steps that are now duplicated because of the matrix. What do we gain by using a matrix?
- Does Taplo guarantee MSRV? It doesn't look like it but I might be wrong. If it does, then maybe 1.61 was chosen for a reason.
For point 1, using matrix makes jobs run in parallel instead on a single runner one after another. |
Yes but that's not the question. The question is whether the 3 docker actions that will now be duplicated are costly or not. (And implicitly if we can afford that cost.) |
I'm not sure what cost are you speaking of |
This is mainly to be able to use Taplo through Docker on ARM machines, like the Apple Silicon MacBooks or Raspberry Pi.
Most of the time for this job is consumed by the
I don't speak Rust 😬 so i don't understand what you are talking about. But i upgraded the
|
This has been stabilized in 1.62
|
I see, so that explains the added linux/arm64 line.
Ok perfect, so the factorization is fine.
This is the Minimum Supported Rust Version. Some projects like to guarantee that their project builds for old versions of the compiler (as long as it's not older than the MSRV they want to support). I couldn't find any mention of the MSRV for Taplo (which kind of makes sense because it's much for of a binary than a library, and MSRV doesn't make too much sense for a binary). So all good on my side to merge. That said, I couldn't find a successful run of this job, so I'm not sure this PR will solve your problem, but at least it increases the chances of solving your problem. Thanks again for the PR! |
Here is the last run for this job: https://github.com/tamasfe/taplo/actions/runs/5511385857/job/14920644021c Thanks for the quick feedback! 🙏 |
Cool, thanks! I missed it. So it's 19min and was the last release so yeah it should probably work for the next as well, which should ideally be soon (see #473). |
linux/arm64
in the build platformsrust:1.73-alpine3.18 as build
andalpine:3.18