From 60ff0889719958e214d7b7365a64027859c59d37 Mon Sep 17 00:00:00 2001 From: Anton Ovchinnikov Date: Mon, 13 Apr 2026 23:08:32 +0200 Subject: [PATCH] ci: Add go build/module caching --- .github/workflows/nightly-build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index abd85960..b4f5c122 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -27,6 +27,16 @@ jobs: - name: Reset changes in mise.lock after fresh mise install run: git checkout mise.lock + - name: Cache Go build and module cache + uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 + with: + path: | + ~/Library/Caches/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Run GoReleaser snapshot run: goreleaser release --snapshot --clean env: