-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Support testing for different targets? #54
Comments
We run the checks in the matrix so that we can run once for each target platform, although we don't yet actually make use of the target, so we're just running the same job repeatedly for the native target (ie, x86_64). I'm not yet sure how to run for different targets or whether it's even supported (I've filed [1] to ask). [1] obi1kenobi/cargo-semver-checks-action#54
We run the checks in the matrix so that we can run once for each target platform, although we don't yet actually make use of the target, so we're just running the same job repeatedly for the native target (ie, x86_64). I'm not yet sure how to run for different targets or whether it's even supported (I've filed [1] to ask). [1] obi1kenobi/cargo-semver-checks-action#54
Thanks for opening this, it's a good idea and we should support and document this. I think this is mostly a docs issue + a minor bug that can be worked around. I'd love a PR that adds an example for this if you have the time.
#55 is a minor bug you might run into here that I just realized. You can work around it by setting an explicit cache key that depends on the target name in the meantime. I unfortunately don't think I'll have time to jump into this anytime soon, but I'd be happy to merge PRs and mentor as needed. I'd of course be happy to reorder my priorities if your employer could be convinced to make a substantial (at minimum one of the "large company" tiers) contribution to support the |
Thanks for the guidance! I probably also won't have time soon, but I'll keep this on the back burner and maybe another zerocopy contributor will be interested in tackling it. |
Sounds good, thank you!
…On Fri, Sep 8, 2023, 6:27 PM Joshua Liebow-Feeser ***@***.***> wrote:
Thanks for the guidance! I probably also won't have time soon, but I'll
keep this on the back burner and maybe another zerocopy contributor will be
interested in tackling it.
—
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAR5MSXOIHYSU75VOKLIVK3XZOLT3ANCNFSM6AAAAAA4P2DKS4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@obi1kenobi , I have been assigned this issue in Google/zerocopy. It referenced this issue and Hence I have raised a PR to resolve this. Can you please review it and suggest changes in it if required? |
I recently started looking into google/zerocopy#357 and I think there is a small mixup of concepts here: @joshlf talks about using this action with a different target, while @obi1kenobi mentions using a different toolchain. The toolchain can be configured as described, either via the action property, or by setting it up manually beforehand and using Looking at the documentation here it correctly talks only about toolchain, so I think the confusing is local to this issue only. What we're after here is something like a Is that something you would consider adding, or accept a PR for? |
Could you describe what you see I'm having trouble understanding how what you describe matches the target terminology used the linked issue, and also how it is different that the existing |
In my view it would be a 1:1 mapping between action and CLI. The action has an input called
The CLI also has another argument called
But the ability to specify that is missing from the action. Perhaps a bit lazy of me, but given that the action is (mostly) a wrapper of the CLI, I would argue that all the reasons for having argument Edit: The CLI help texts above are from |
Nice, thanks! I'd be happy to merge a PR that exposes and documents a It would be great if you could make sure to document any prerequisites for using the new target argument in the action's docs. For example, if there's a requirement to use a compatible toolchain or anything else. |
This issue can now be closed. |
Resolved by #82, released as tag |
Great! Would you add a github release describing the new version as well, please? |
Done, thanks for the reminder! |
It's possible I'm misreading the documentation, but it appears as though there's no way to instruct the action to build for a particular target. In CI, we use a job matrix to build and test on different targets, and I'd like to be able to use cargo-semver-checks-action as a step in the matrix so that we're checking for semver compatibility for each target (we have some target-specific features like trait impls for SIMD types). It'd be great if this were supported at some point!
The text was updated successfully, but these errors were encountered: