From b8ac5bd374c2ec5ac0004e5b06c8c0e698203cfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20W=C3=BCrl?= Date: Sat, 9 Nov 2024 00:04:42 +0100 Subject: [PATCH] better use cache --- .github/workflows/rust.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f34b770..792f737 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -21,12 +21,6 @@ jobs: with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: Install Rust - run: rustup update ${{ env.toolchain }} && rustup default ${{ env.toolchain }} - - - name: Install Cargo Tarpaulin - run: cargo install cargo-tarpaulin - - name: Cache cargo registry uses: actions/cache@v3 with: @@ -45,6 +39,12 @@ jobs: restore-keys: | ${{ runner.os }}-cargo-build- + - name: Install Rust + run: rustup update ${{ env.toolchain }} && rustup default ${{ env.toolchain }} + + - name: Install Cargo Tarpaulin + run: cargo install cargo-tarpaulin + - name: Build run: cargo build --verbose