-
Notifications
You must be signed in to change notification settings - Fork 9
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
GitHub Action to install cargo-run-bin
#21
Comments
This more than doubles the CI runtime, but I think that's okay to avoid CI failures for now. Perhaps dustinblackman/cargo-run-bin#21 can lead to something more reliable.
For example, here are two CI runs of the exact same commit: I'm sure there are some details I'm missing, but one CI run takes only 29s while the other one spends 26s just on installing To be clear, I'm not saying |
There's also quickinstall, which will build cargo-run-bin if it is used widely. Or I can add it to the list of popular softwares to build, if you don't feel like adding binaries to release. |
Hey there! So I'm down to build binaries for cargo-run-bin, I just need to put in the effort. I take producing third party licenses pretty seriously, and just need to port stuff from other repos first to get it setup.
Either way, binary releases sound fun. I'll try to make time. |
Fun fact: @lgarron cargo-quickinstall already builds cargo-run-bin v1.7.2 https://github.com/cargo-bins/cargo-quickinstall/releases/tag/cargo-run-bin-1.7.2 So if you are using cargo-binstall or taiki-e/install-action, it should work out-of-the-box. |
Do you have an example of an workflow that reliably installs |
Can you try installing cargo-run-bin first using taiki-e/install-action, then using the rust-cache? |
I really like the collective power of
cargo-run-bin
and https://github.com/cargo-bins/cargo-binstall , which can work well together. However, I'm having issues using them efficiently in GitHub Actions, for a few reasons:cargo-run-bin
doesn't seem to have binaries that can be installed in GitHub Actions runners usingcargo binstall
. Usingcargo-binstall
withcargo-run-bin
for fast CI in GitHub Actions cargo-bins/cargo-binstall#1551cargo install cargo-run-bin
takes significant time, potentially dominating the runtime of a CI job.This is probably "my fault" for not understanding exactly how to connect all the tooling, but I think this could be a lot more straightforward. It would be really nice to have a GitHub action that installs a pre-compiled
cargo-run-bin
in a couple of seconds, similar tocargo-binstall
(note how the top of the repo links to the action). This would provide a great foundation for writing fast and repeatable CI jobs for Rust.The text was updated successfully, but these errors were encountered: