diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7553bb4ef..dadce7d24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,6 +76,7 @@ jobs: - uses: actions/checkout@v2 - name: Install Rust run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} + - uses: taiki-e/install-action@cargo-hack - name: Check features run: ./ci/check-features.sh @@ -87,6 +88,7 @@ jobs: - uses: actions/checkout@v2 - name: Install Rust run: rustup update nightly && rustup default nightly + - uses: taiki-e/install-action@cargo-hack - name: dependency tree check run: ./ci/dependencies.sh diff --git a/ci/check-features.sh b/ci/check-features.sh index 17fc1a8c1..8d1f66f90 100755 --- a/ci/check-features.sh +++ b/ci/check-features.sh @@ -3,10 +3,6 @@ cd "$(dirname "$0")"/.. set -ex -if [[ ! -x "$(command -v cargo-hack)" ]]; then - cargo +stable install --debug cargo-hack || exit 1 -fi - if [[ "$RUST_VERSION" != "nightly"* ]]; then # On MSRV, features other than nightly should work. # * `--feature-powerset` - run for the feature powerset which includes --no-default-features and default features of package diff --git a/ci/dependencies.sh b/ci/dependencies.sh index 168eeb611..db7e7321d 100755 --- a/ci/dependencies.sh +++ b/ci/dependencies.sh @@ -3,8 +3,6 @@ cd "$(dirname "$0")"/.. set -ex -cargo install cargo-hack - cargo tree cargo tree --duplicate cargo tree --duplicate || exit 1