From fb4df067b89de25cdbb6527d6d21bbd9e01f5637 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Sat, 1 Jun 2024 14:44:47 +0530 Subject: [PATCH] ci: cache dep builds --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a21760..e9e2c64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,15 @@ jobs: cargo-${{ hashFiles('**/Cargo.toml') }} cargo- + - name: Cargo Target Cache + uses: actions/cache@v3 + with: + path: target + key: cargo-target-${{ hashFiles('**/Cargo.toml') }} + restore-keys: | + cargo-target-${{ hashFiles('**/Cargo.toml') }} + cargo-target- + - name: Run tests run: | cd ${GITHUB_WORKSPACE}