ci: fetch cargo hack from github release (#507)

Co-authored-by: Taiki Endo <te316e89@gmail.com>
This commit is contained in:
Alice Ryhl
2021-08-24 12:33:16 +02:00
committed by GitHub
parent d766a57017
commit c728c48212
+2 -1
View File
@@ -5,7 +5,8 @@ set -ex
cmd="${1:-test}"
# Install cargo-hack for feature flag test
cargo install cargo-hack
host=$(rustc -Vv | grep host | sed 's/host: //')
curl -LsSf https://github.com/taiki-e/cargo-hack/releases/latest/download/cargo-hack-$host.tar.gz | tar xzf - -C ~/.cargo/bin
# Run with each feature
# * --each-feature includes both default/no-default features