From 43615bc1b9997a1fa2bccb44c64019c8af21fbd9 Mon Sep 17 00:00:00 2001 From: slyt3 Date: Mon, 2 Feb 2026 17:41:25 +0200 Subject: [PATCH] chore: cache go build/tools in helm charts workflow --- .github/workflows/helm-charts-test.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/helm-charts-test.yml b/.github/workflows/helm-charts-test.yml index 0becfcb3eb..acd41d4c90 100644 --- a/.github/workflows/helm-charts-test.yml +++ b/.github/workflows/helm-charts-test.yml @@ -22,6 +22,25 @@ jobs: go-version-file: 'go.mod' cache: true + # Cache Go build cache for faster ko builds + - name: Cache Go build cache + uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5 + with: + path: ~/.cache/go-build + key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go-build- + + # Cache Go tools (helm-docs) + - name: Cache Go tools + id: cache-go-tools + uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5 + with: + path: ~/go/bin + key: ${{ runner.os }}-go-tools-${{ hashFiles('go.mod') }}-helm-docs + restore-keys: | + ${{ runner.os }}-go-tools- + - name: Set up ko uses: ko-build/setup-ko@d006021bd0c28d1ce33a07e7943d48b079944c8d # v0.9