From 0b6f5127537604bab30003b5884db0641b9eb9d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sat, 18 Dec 2021 23:45:58 +0300 Subject: [PATCH] chore(ci): cache cargo dependencies for test job --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61b8903..27b7e84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,6 +79,17 @@ jobs: toolchain: stable override: true + - name: Cache Cargo dependencies + uses: actions/cache@v2 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} + - name: Setup cargo-tarpaulin run: | curl -s https://api.github.com/repos/xd009642/tarpaulin/releases/latest | \