From 6d0dc9628bfe3d02d69c3937e5e2633dbe80f614 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sat, 1 Apr 2023 22:21:57 +0100 Subject: [PATCH] install cargo-hack faster --- .github/workflows/ci-master.yml | 12 ++++++------ .github/workflows/ci.yml | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-master.yml b/.github/workflows/ci-master.yml index 5f4b7428..66bc042e 100644 --- a/.github/workflows/ci-master.yml +++ b/.github/workflows/ci-master.yml @@ -49,8 +49,8 @@ jobs: with: toolchain: ${{ matrix.version }} - - name: Install cargo-hack - run: cargo install cargo-hack + - uses: taiki-e/cache-cargo-install-action@v1 + with: { tool: cargo-hack } - name: check lib if: > @@ -119,11 +119,11 @@ jobs: uses: actions-rust-lang/setup-rust-toolchain@v1 with: { toolchain: nightly } - - name: Install cargo-minimal-versions - run: cargo install cargo-minimal-versions + - uses: taiki-e/cache-cargo-install-action@v1 + with: { tool: cargo-minimal-versions } - - name: Install cargo-hack - run: cargo install cargo-hack + - uses: taiki-e/cache-cargo-install-action@v1 + with: { tool: cargo-hack } - name: Check With Minimal Versions run: cargo minimal-versions check diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e0fcf11..f59d79e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,8 +50,8 @@ jobs: with: toolchain: ${{ matrix.version }} - - name: Install cargo-hack - run: cargo install cargo-hack + - uses: taiki-e/cache-cargo-install-action@v1 + with: { tool: cargo-hack } - name: Generate Cargo.lock run: cargo generate-lockfile