From d89c2a36c6196cdc5bc3efa83557980a9cd3934f Mon Sep 17 00:00:00 2001 From: Moises Marquez <55683710+moises-marquez@users.noreply.github.com> Date: Mon, 15 Feb 2021 10:21:49 +0100 Subject: [PATCH] Cache cargo dependencies (#45) --- .github/workflows/general.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/general.yml b/.github/workflows/general.yml index ec7cbec..13eaf81 100644 --- a/.github/workflows/general.yml +++ b/.github/workflows/general.yml @@ -30,6 +30,15 @@ jobs: - 5432:5432 steps: - uses: actions/checkout@v2 + - name: Cache dependencies + id: cache-dependencies + uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - uses: actions-rs/toolchain@v1 with: profile: minimal