mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-04 19:20:03 +00:00
Fix unit test & integration CI and the release CI (#469)
* Fix integration test: Make sure `cargo build cargo-binstall` would not fail due to binary already present * Disable feature `zlib-ng` for release build * Disable build-std for release build on aarch64-unknown-linux-gnu * Fix clippy warning in unit test CI * Fix compile-settings.jq * Fix caching: Rm `restores-keys` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
5d51541dcf
commit
98b62251ad
4 changed files with 18 additions and 12 deletions
8
.github/scripts/tests.sh
vendored
8
.github/scripts/tests.sh
vendored
|
@ -12,15 +12,17 @@ if [ "$2" = "Windows" ]; then
|
|||
"./$1" --log-level debug --no-confirm $crates
|
||||
else
|
||||
export CARGO_HOME=/tmp/cargo-home-for-test
|
||||
export PATH="$CARGO_HOME/bin:$PATH"
|
||||
export PATH="$CARGO_HOME/bin:/tmp/t/bin:$PATH"
|
||||
|
||||
mkdir -p "$CARGO_HOME/bin"
|
||||
mkdir -p "/tmp/t/bin"
|
||||
# Copy it to bin to test use of env var `CARGO`
|
||||
cp "./$1" "$CARGO_HOME/bin/cargo-binstall"
|
||||
cp "./$1" "/tmp/t/bin/cargo-binstall"
|
||||
|
||||
# Install binaries using cargo-binstall
|
||||
# shellcheck disable=SC2086
|
||||
cargo binstall --log-level debug --no-confirm $crates
|
||||
|
||||
rm -r /tmp/t
|
||||
fi
|
||||
|
||||
# Test that the installed binaries can be run
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue