Skip to content

Commit b64d374

Browse files
committed
Make installation of cargo-hack faster and robust
1 parent c254037 commit b64d374

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ jobs:
7676
- uses: actions/checkout@v2
7777
- name: Install Rust
7878
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
79+
- uses: taiki-e/install-action@cargo-hack
7980
- name: Check features
8081
run: ./ci/check-features.sh
8182

@@ -87,6 +88,7 @@ jobs:
8788
- uses: actions/checkout@v2
8889
- name: Install Rust
8990
run: rustup update nightly && rustup default nightly
91+
- uses: taiki-e/install-action@cargo-hack
9092
- name: dependency tree check
9193
run: ./ci/dependencies.sh
9294

ci/check-features.sh

-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
cd "$(dirname "$0")"/..
44
set -ex
55

6-
if [[ ! -x "$(command -v cargo-hack)" ]]; then
7-
cargo +stable install --debug cargo-hack || exit 1
8-
fi
9-
106
if [[ "$RUST_VERSION" != "nightly"* ]]; then
117
# On MSRV, features other than nightly should work.
128
# * `--feature-powerset` - run for the feature powerset which includes --no-default-features and default features of package

ci/dependencies.sh

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
cd "$(dirname "$0")"/..
44
set -ex
55

6-
cargo install cargo-hack
7-
86
cargo tree
97
cargo tree --duplicate
108
cargo tree --duplicate || exit 1

0 commit comments

Comments
 (0)