diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 49fef7a7..ef0af43e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,7 +41,7 @@ jobs: run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }} shell: bash - name: Install cargo-hack - run: cargo install cargo-hack + uses: taiki-e/install-action@cargo-hack - name: Run tests run: cargo hack test --feature-powerset && cargo hack test --feature-powerset --release @@ -68,10 +68,10 @@ jobs: - uses: actions/checkout@master - name: Install Rust run: rustup update stable && rustup default stable - - name: Install cargo-hack - run: cargo install cargo-hack - name: Install Target run: rustup target add ${{ matrix.target }} + - name: Install cargo-hack + uses: taiki-e/install-action@cargo-hack - name: Run check run: cargo hack check --feature-powerset --all-targets --examples --bins --tests --target ${{ matrix.target }} @@ -87,9 +87,9 @@ jobs: - uses: actions/checkout@master - name: Install Rust nightly run: rustup update nightly && rustup default nightly - - name: Install cargo-hack - run: cargo install cargo-hack - name: Install Target run: rustup target add ${{ matrix.target }} + - name: Install cargo-hack + uses: taiki-e/install-action@cargo-hack - name: Run check run: cargo hack check --feature-powerset --all-targets --examples --bins --tests --target ${{ matrix.target }}