Skip to content
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

ci: Remove version number from release binaries #91

Merged
merged 1 commit into from
Nov 13, 2020
Merged

ci: Remove version number from release binaries #91

merged 1 commit into from
Nov 13, 2020

Conversation

taiki-e
Copy link
Owner

@taiki-e taiki-e commented Nov 13, 2020

See also #89 (comment)

This allows installing cargo-hack with one command if you know the host os.
before(current):

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:

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:
EDIT: See #98 for the latest version.

To prevent breaking the CI that depends on the current URL, we will distribute under both names until the next major version (0.5).

@taiki-e
Copy link
Owner Author

taiki-e commented Nov 13, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Nov 13, 2020

Build succeeded:

@bors bors bot merged commit 3898aa9 into master Nov 13, 2020
@bors bors bot deleted the version branch November 13, 2020 10:01
hawkw pushed a commit to tokio-rs/tracing that referenced this pull request Nov 13, 2020
)

## Motivation

Closes #648

## Solution

Install cargo-hack from GitHub release instead of using cache.
See also taiki-e/cargo-hack#89 and 
taiki-e/cargo-hack#91.
hawkw added a commit to tower-rs/tower that referenced this pull request Nov 23, 2020
CI is currently busted due to [issues with caching `cargo-hack`][1].
Currently, we cache the `cargo-hack` executable to speed up builds by
avoiding the overhead of compiling it from source in every build.

Recently, `cargo-hack` has started publishing binaries on GitHub
Releases. Rather than compiling it on CI and caching it, we can just
download the binary instead. This ought to fix the build.

See also taiki-e/cargo-hack#89 and taiki-e/cargo-hack#91.

[1]: https://github.com/tower-rs/tower/runs/1425940763
hawkw added a commit to tower-rs/tower that referenced this pull request Nov 23, 2020
CI is currently busted due to [issues with caching `cargo-hack`][1].
Currently, we cache the `cargo-hack` executable to speed up builds by
avoiding the overhead of compiling it from source in every build.

Recently, `cargo-hack` has started publishing binaries on GitHub
Releases. Rather than compiling it on CI and caching it, we can just
download the binary instead. This ought to fix the build.

See also taiki-e/cargo-hack#89 and taiki-e/cargo-hack#91.

[1]: https://github.com/tower-rs/tower/runs/1425940763
hawkw pushed a commit to tokio-rs/tracing that referenced this pull request Nov 23, 2020
)

Closes #648

Install cargo-hack from GitHub release instead of using cache.
See also taiki-e/cargo-hack#89 and
taiki-e/cargo-hack#91.
hawkw pushed a commit to tokio-rs/tracing that referenced this pull request Nov 23, 2020
)

Closes #648

Install cargo-hack from GitHub release instead of using cache.
See also taiki-e/cargo-hack#89 and
taiki-e/cargo-hack#91.
bors bot added a commit that referenced this pull request Dec 3, 2020
101: Stop distributing binaries containing version numbers r=taiki-e a=taiki-e

See #91 for more.

Co-authored-by: Taiki Endo <te316e89@gmail.com>
hawkw added a commit to tower-rs/tower that referenced this pull request Dec 23, 2020
CI is currently busted due to [issues with caching `cargo-hack`][1].
Currently, we cache the `cargo-hack` executable to speed up builds by
avoiding the overhead of compiling it from source in every build.

Recently, `cargo-hack` has started publishing binaries on GitHub
Releases. Rather than compiling it on CI and caching it, we can just
download the binary instead. This ought to fix the build.

See also taiki-e/cargo-hack#89 and taiki-e/cargo-hack#91.

[1]: https://github.com/tower-rs/tower/runs/1425940763
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant