From 5a9f8438cf80faba914d1c340a7d60f3d5fb0a8d Mon Sep 17 00:00:00 2001 From: dh <46441813+DeanHnter@users.noreply.github.com> Date: Wed, 24 Apr 2024 14:21:08 +0200 Subject: [PATCH] added go module cache --- .github/workflows/go.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 65ca2b1..f81cd0d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -20,6 +20,14 @@ jobs: with: go-version: '1.21' + - name: Cache Go Modules + uses: actions/cache@v3 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Setup GOPRIVATE run: go env -w GOPRIVATE=github.com/CoreViewInc/CoreNiko