Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.95 KB

README.md

File metadata and controls

55 lines (37 loc) · 1.95 KB

gh-install

Install pre-built binaries from GitHub.

Build Status

Getting Started

Usage

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).

Creating compatible artifacts

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 a v and looks like a version.
  • <target>: The target triplet. If rust is installed, it will be inferred from that.
  • <format>: Must be zip for Windows and tar.gz for Linux/Mac.

All binaries in the root of the artifact will be copied to the --path.

For an Azure Pipelines example, see committed.

License

Licensed under either of

at your option.

Contribution

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.