From 4af16eba08621fde27d19a2377379e9fbb567da6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Insaurralde?= Date: Sun, 22 Mar 2026 01:30:42 -0300 Subject: [PATCH] ci: set CGO_ENABLED=0 at job level to fix goreleaser build cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit actions/setup-go saves and restores the build cache keyed with the active environment. Without CGO_ENABLED=0 set at the job level, the cache is saved with CGO_ENABLED=1 (Linux default), but goreleaser builds with CGO_ENABLED=0, causing a full recompile of all packages on every release run despite a reported cache hit. Signed-off-by: Matías Insaurralde --- .github/workflows/release.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index aa17ef434..3a7a7e608 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -55,6 +55,7 @@ jobs: attestations: write # required for SLSA provenance env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CGO_ENABLED: "0" steps: - name: Install Cosign