Skip to content

Commit

Permalink
release: cargo-binstall v0.13.0 (#366)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <[email protected]>
Co-authored-by: Félix Saparelli <[email protected]>
  • Loading branch information
3 people authored Sep 10, 2022
1 parent 22ac1cf commit 037e621
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 14 deletions.
15 changes: 15 additions & 0 deletions .github/scripts/github-test-Cargo.toml
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"
22 changes: 11 additions & 11 deletions .github/scripts/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion crates/bin/windows.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<assemblyIdentity
type="win32"
name="Binstall.Cli.binstall"
version="0.12.0.0"
version="0.13.0.0"
/>

<trustInfo>
Expand Down

0 comments on commit 037e621

Please sign in to comment.