-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release: cargo-binstall v0.13.0 (#366)
Co-authored-by: github-actions <[email protected]> Co-authored-by: Félix Saparelli <[email protected]>
- Loading branch information
1 parent
22ac1cf
commit 037e621
Showing
5 changed files
with
29 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[package] | ||
name = "cargo-binstall" | ||
description = "Rust binary package installer for CI integration" | ||
repository = "https://github.com/cargo-bins/cargo-binstall" | ||
version = "0.12.0" | ||
rust-version = "1.61.0" | ||
authors = ["ryan <[email protected]>"] | ||
edition = "2021" | ||
license = "GPL-3.0" | ||
|
||
[package.metadata.binstall] | ||
bin-dir = "{ bin }{ binary-ext }" | ||
|
||
[[bin]] | ||
name = "cargo-binstall" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,28 +2,28 @@ | |
|
||
set -euxo pipefail | ||
|
||
bins="cargo-llvm-cov cargo-binstall" | ||
test_bins="cargo-llvm-cov" | ||
|
||
unset CARGO_INSTALL_ROOT | ||
unset CARGO_HOME | ||
|
||
# Install binaries using cargo-binstall | ||
# shellcheck disable=SC2086 | ||
"./$1" binstall --log-level debug --no-confirm $bins | ||
"./$1" binstall --log-level debug --no-confirm b3sum cargo-binstall | ||
|
||
# Test that the installed binaries can be run | ||
for bin in $test_bins; do | ||
"$HOME/.cargo/bin/$bin" --version | ||
done | ||
b3sum --version | ||
cargo-binstall --help >/dev/null | ||
cargo binstall --help >/dev/null | ||
|
||
test_resources=".github/scripts" | ||
|
||
# Install binaries using `--manifest-path` | ||
"./$1" binstall --force --log-level debug --manifest-path crates/bin/Cargo.toml --no-confirm cargo-binstall | ||
"./$1" binstall --force --log-level debug --manifest-path crates/bin --no-confirm cargo-binstall | ||
"./$1" binstall --force --log-level debug --manifest-path "$test_resources/gitlab-test-Cargo.toml" --no-confirm cargo-binstall | ||
# Test that the installed binaries can be run | ||
cargo binstall --help >/dev/null | ||
|
||
# FIXME: test this some other way that is not dependent on the version being published! | ||
# "./$1" binstall --force --log-level debug --manifest-path crates/bin --no-confirm cargo-binstall | ||
|
||
min_tls=1.3 | ||
[[ "${2:-}" == "Windows" ]] && min_tls=1.2 # WinTLS on GHA doesn't support 1.3 yet | ||
|
||
|
@@ -57,8 +57,8 @@ cargo binstall --help >/dev/null | |
"./$1" binstall --no-confirm [email protected] | grep -q 'cargo-binstall v0.12.0 is already installed' | ||
"./$1" binstall --no-confirm cargo-binstall@^0.12.0 | grep -q -v 'cargo-binstall v0.12.0 is already installed' | ||
|
||
# Test default GitLab pkg-url templates | ||
test_resources=".github/scripts" | ||
# to force failure if falling back to source | ||
# FIXME: remove/replace once #136 lands | ||
PATH="$test_resources/fake-cargo:$PATH" | ||
|
||
"./$1" binstall \ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name = "cargo-binstall" | |
description = "Rust binary package installer for CI integration" | ||
repository = "https://github.com/ryankurte/cargo-binstall" | ||
documentation = "https://docs.rs/cargo-binstall" | ||
version = "0.12.0" | ||
version = "0.13.0" | ||
rust-version = "1.61.0" | ||
authors = ["ryan <[email protected]>"] | ||
edition = "2021" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters