Install pre-built binaries from GitHub.
Download the script for your platform:
And run it:
$ ./install.sh --git <org>/<repo>
# Or
PS install.ps1 -git <org>/<repo>
and the binary will be installed to $HOME/.cargo/bin unless --path is specified
Or use the Azure Pipeline template (example).
The filename must be of the form <crate>-<tag>-<target>.<format>
<crate>: If it does not match<repo>, users will need to pass in the--crate <crate>flag<tag>: Must be the tag the artifact is associated with.install.*can automatically use the latest tag if it starts with avand looks like a version.<target>: The target triplet. If rust is installed, it will be inferred from that.<format>: Must bezipfor Windows andtar.gzfor Linux/Mac.
All binaries in the root of the artifact will be copied to the --path.
For an Azure Pipelines example, see committed.
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Thanks for japaric/trust for the original install.sh.