From ade22021415a543b64ffab3a90f9be356f5afb04 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Fri, 21 Jun 2024 13:17:31 -0400 Subject: go: cache modules Signed-off-by: Xe Iaso --- .github/workflows/go.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 18d3bb3..6231eed 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -20,6 +20,16 @@ jobs: run: | brew bundle + - name: Setup Golang caches + uses: actions/cache@v4 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-golang- + - name: cache deno.land dependencies uses: actions/cache@v2 with: @@ -33,8 +43,3 @@ jobs: - name: Test run: go test -v ./... - - - name: Ensure generated code is up to date - run: | - go generate ./... - git diff --exit-code || echo "The current tree is dirty, run 'go generate ./...' to fix it" -- cgit v1.2.3