From d37eaa662343916722211f743b7cb0d7ea65c6e0 Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Sun, 10 Dec 2023 15:22:21 -0500 Subject: [PATCH 1/2] Add caching to setup-go Signed-off-by: Yuri Shkuro --- .github/workflows/ci-unit-tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-unit-tests.yml b/.github/workflows/ci-unit-tests.yml index a1654ffec94..86074e4ea50 100644 --- a/.github/workflows/ci-unit-tests.yml +++ b/.github/workflows/ci-unit-tests.yml @@ -26,9 +26,10 @@ jobs: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe + - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: go-version: 1.21.x + cache-dependency-path: ./go.sum - name: Run unit tests run: make test-ci From 28b57fa34586f592d07160cd336544e62e1cf5e5 Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Sun, 10 Dec 2023 15:34:03 -0500 Subject: [PATCH 2/2] remove custom GOCACHE Signed-off-by: Yuri Shkuro --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ee5974ba8b2..d70116097d9 100644 --- a/Makefile +++ b/Makefile @@ -53,9 +53,8 @@ else endif GOOS ?= $(shell $(GO) env GOOS) GOARCH ?= $(shell $(GO) env GOARCH) -GOCACHE=$(abspath .gocache) -GOBUILD=GOCACHE=$(GOCACHE) CGO_ENABLED=0 installsuffix=cgo $(GO) build -trimpath -GOTEST_QUIET=GOCACHE=$(GOCACHE) $(GO) test $(RACE) +GOBUILD=CGO_ENABLED=0 installsuffix=cgo $(GO) build -trimpath +GOTEST_QUIET=$(GO) test $(RACE) GOTEST=$(GOTEST_QUIET) -v GOFMT=gofmt GOFUMPT=gofumpt