Skip to content

Commit

Permalink
add caching for go builds
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik committed Aug 5, 2024
1 parent cd6df0b commit ec9f235
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/registry-updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ec9f235

Please sign in to comment.