From 88bd8b860e2df436f423581ae73a1edc0afde1ca Mon Sep 17 00:00:00 2001 From: Kiran V Garimella Date: Fri, 18 Oct 2024 22:33:56 -0400 Subject: [PATCH] Kvg dep cache (#38) * Cache Rust dependencies for faster builds --- .github/workflows/ci_push.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_push.yml b/.github/workflows/ci_push.yml index 5a6b35ea..9c83a1f5 100644 --- a/.github/workflows/ci_push.yml +++ b/.github/workflows/ci_push.yml @@ -13,6 +13,15 @@ jobs: run: git config --global --add safe.directory /__w/hidive/hidive - uses: 'actions/checkout@v3' + - name: Cache Rust dependencies + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Setup Rust uses: dtolnay/rust-toolchain@stable with: @@ -51,7 +60,7 @@ jobs: run: gcloud auth configure-docker us.gcr.io -q - name: Build and push Docker image - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: ./docker push: true