From e94db9dfd0cc395a4dd87afbac2de71097f7ad39 Mon Sep 17 00:00:00 2001 From: CN-JS-HuiBai Date: Thu, 16 Apr 2026 19:34:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BE=9D=E8=B5=96=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/autobuild.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.gitea/workflows/autobuild.yml b/.gitea/workflows/autobuild.yml index 6e4fc2b1..3029afaf 100644 --- a/.gitea/workflows/autobuild.yml +++ b/.gitea/workflows/autobuild.yml @@ -34,6 +34,26 @@ jobs: with: go-version: ~1.25.9 + - name: Prepare Go cache + shell: bash + run: | + set -euo pipefail + mkdir -p "$PWD/.gitea-cache/go-build" "$PWD/.gitea-cache/gomod" + echo "GOCACHE=$PWD/.gitea-cache/go-build" >> "$GITHUB_ENV" + echo "GOMODCACHE=$PWD/.gitea-cache/gomod" >> "$GITHUB_ENV" + + - name: Download Go modules + shell: bash + run: | + set -euo pipefail + go mod download + + - name: Verify Go modules + shell: bash + run: | + set -euo pipefail + go mod verify + - name: Resolve build metadata shell: bash run: |