-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add cargo-tarpaulin support #42
Conversation
d0cfdd4
to
a14d5af
Compare
a14d5af
to
420a54e
Compare
P.S. cargo-quickinstall provides builds for x86_64-pc-windows-msvc and x86_64-apple-darwin. |
I removed it from the container CI. It fails on most of them due to
I could also duplicate the debian:11-slim job if you'd like. |
Oh, hm. I'm noticing now that the GH releases for tarpaulin are behind a few versions too -- only covering up to 0.22.0 (latest is 0.23.1)... A bit unsure what to do here. |
You could use quickinstall builds instead, which provides the latest v0.23.1 The name is also very predictable and I think it can run on old glibc. Though I recommend use them through |
Hm, I'm unsure how to set that up in the manifest templates, if that's what you're suggesting. |
quickinstall url for cargo-tarpaulin goes like this:
|
I see. I think I need to extend tools/codegen to support this. |
Ah, wait, maybe I'm being thick -- I see now that (I don't love that -- I think direct support would be better, but also I don't know how much more time I feel like spending on this...) |
Nope, this is just the same as you would do otherwise.
That's also feasible since |
I would say that if you don't have enough time, simply drop this and fallback to IMHO |
I'm just going to go with grcov for now, I think. |
I think the best way here would be to help them fix their release workflow and add linux-musl/macos/windows support (xd009642/tarpaulin#1130). (If they are fine with using my upload-rust-binary-action action (used by cargo-llvm-cov, tokio-console, nextest, etc.) then I think it should be easy to do.)
I think this need to at least add support for tag suffixes to codegen. Currently only tag prefixes are supported. |
Oops you are right, I didn't know this. |
Yeah, and solving this is kind of annoying because the suffix isn't static the way the prefixes are -- it's the dynamic target name. Solving this required more thought than I had time for, so I punted.
I happened to chat a bit with @xd009642 on Discord while writing this PR and I think they're open to this. |
Now that |
Yeah, I would accept a PR to support cargo-tarpaulin. |
Added in 2.4.0 (#65). |
Given that
actions-rs/tarpaulin
is currently broken, it'd be nice for folks to have a migration path.This will conflict with #41 -- I wasn't sure if you preferred I do this on top of that branch, or what, but this is cleaner in case you have feedback/changes you'd like me to make to that one. I'll rebase after that merges, or you can push the fix to my branch if I'm not around (I don't care much).
Note:
cargo-tarpaulin
only provides binaries for x86_64-unknown-linux-gnu, and the tarballs have fairly idiosyncratic names. It's plausible that will have to change ifcargo-tarpaulin
ever provides other binaries, but at the moment it does not, so who knows.