From f28ddb25d2a556aabd15366f1fbcb8c799f32e0b Mon Sep 17 00:00:00 2001 From: MahdiBM Date: Sun, 15 Dec 2024 17:26:02 +0330 Subject: [PATCH] use caching in lambda deploys as well --- .github/workflows/deploy-all-lambdas.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/deploy-all-lambdas.yml b/.github/workflows/deploy-all-lambdas.yml index 127e0d94..71ed26e4 100644 --- a/.github/workflows/deploy-all-lambdas.yml +++ b/.github/workflows/deploy-all-lambdas.yml @@ -32,6 +32,14 @@ jobs: cd ${{ github.event.repository.name }} git checkout ${{ github.sha }} + - name: Restore .build + id: "restore-cache" + uses: actions/cache/restore@v4 + with: + path: ${{ github.event.repository.name }}/.build + key: "lambdas-build-${{ runner.os }}-${{ github.event.after }}" + restore-keys: "lambdas-build-${{ runner.os }}-" + - name: Find package names working-directory: ${{ github.event.repository.name }} id: find_package_names @@ -62,6 +70,12 @@ jobs: --body ./zips/${name}/${name}.zip done + - name: Cache .build + uses: actions/cache/save@v4 + with: + path: ${{ github.event.repository.name }}/.build + key: "lambdas-build-${{ runner.os }}-${{ github.event.after }}" + - name: Deploy working-directory: ${{ github.event.repository.name }} run: |