Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
91: ci: Remove version number from release binaries r=taiki-e a=taiki-e See also #89 (comment) This allows installing cargo-hack with one command if you know the host os. before(current): ```sh version=$(curl -LsSf https://api.github.com/repos/taiki-e/cargo-hack/releases/latest | jq -r '.name') curl -LsSf https://github.com/taiki-e/cargo-hack/releases/download/v${version}/cargo-hack-v${version}-x86_64-unknown-linux-gnu.tar.gz | tar xzf - -C ~/.cargo/bin ``` after: ```sh curl -LsSf https://github.com/taiki-e/cargo-hack/releases/latest/download/cargo-hack-x86_64-unknown-linux-gnu.tar.gz | tar xzf - -C ~/.cargo/bin ``` Script for cross-platform installing to be also a bit simpler. before(current): #89 (comment) after: ```sh host=$(rustc -Vv | grep host | sed 's/host: //') if [[ $host =~ windows ]]; then curl -LsSf https://github.com/taiki-e/cargo-hack/releases/latest/download/cargo-hack-${host}.zip -o cargo-hack.zip 7z x cargo-hack.zip -o~/.cargo/bin elif [[ $host =~ darwin|linux ]]; then curl -LsSf https://github.com/taiki-e/cargo-hack/releases/latest/download/cargo-hack-${host}.tar.gz | tar xzf - -C ~/.cargo/bin else echo "unsupported operating system" exit 1 fi ``` To prevent breaking the CI that depends on the current URL, we will distribute under both names until the next major version (0.5). Co-authored-by: Taiki Endo <te316e89@gmail.com>
- Loading branch information