-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
GHA support #47
Comments
You mean providing build artifacts in this repo so that third party CI can "binary install" those? I know trust (Travis CI template) provided that functionality but I don't know if actions-rs provides similar functionality. |
cc actions-rs/meta#21 and also https://github.com/actions-rs/install The trust template was ported to GHA and extended here: https://github.com/XAMPPRocky/mean-bean-ci-template We could potentially use that to release binaries, but waiting for actions-rs to gain this functionality might be better, given that flip-link already builds very quickly. |
For some value of quickly. It takes 58 seconds against my actual code build of 43 second. |
Reading rust-embedded/embedonomicon#72, perhaps it would suffice to offer an example of how to enable caching so that flip-link builds are bypassed that way instead. |
I think providing build artifacts for releases is quite possible. I would limit it to a few major targets for the beginning and then wait for What do you think @thejpster? |
Sure. I only need whatever GHA runs - x64 Linux I assume . |
Yes. My thought was to just support the GHA targets for their linux, windows and macos machines. Thereby we cover the CI usecase, which should be enough for now. |
The last flip-link release which you're using in CI has this dependency tree (and builds, without crate downloads, in 5.5s on my machine):
Current
With #51, the dependencies are further reduced (and it now builds in 2.5s):
|
How long does it take in GHA? |
From trying it only one time the main branch currently takes 32 seconds (see). |
5 seconds from scratch including crate download time: https://github.com/knurling-rs/flip-link/runs/4811186841?check_suite_focus=true#step:4:33 in any case, I looked into doing GitHub releases from GitHub Actions and, well, it doesn't look there's a canonical way to go about it. there are several options
so I too would prefer to wait until actions-rs provides something that works out of the box, preferably something that builds tarballs with some standardized name and that interops with actions-rs/install |
PR #74 has an example of how to cache Cargo's registry and the target directory. I don't think that would help with if you want to cache the |
For what it's worth I have been happily using https://github.com/softprops/action-gh-release for one of my projects. But I can live with a five second install. Thank you all for working on this! |
Just to come back to this, installing flip-link in GHA is taking 45 seconds, even with |
@thejpster said:
I will investigate why the compile time regressed and work on releasing pre-build binaries. |
You can now download binaries from the releases page, e.g. https://github.com/knurling-rs/flip-link/releases/tag/v0.1.8 |
Is there a way to use flip-link in a Github Action, without building it from source every time?
See https://github.com/Neotron-Compute/Neotron-BMC/runs/3152027601?check_suite_focus=true as an example.
The text was updated successfully, but these errors were encountered: