Skip to content

crate-ci/gh-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Install from github releases

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published