From ec9f2356efeb79817eb7a7cf0f9b76c8c87a1247 Mon Sep 17 00:00:00 2001 From: Karthikeyan C Date: Mon, 5 Aug 2024 16:01:56 +0530 Subject: [PATCH] add caching for go builds --- .github/workflows/registry-updates.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/registry-updates.yaml b/.github/workflows/registry-updates.yaml index 56a6af14c..54b53fdf4 100644 --- a/.github/workflows/registry-updates.yaml +++ b/.github/workflows/registry-updates.yaml @@ -47,6 +47,16 @@ jobs: with: go-version: 1.21.x + - name: Cache Go modules + uses: actions/cache@v4 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Run registry automation program env: CHANGED_FILES_PATH: "changed_files.json"