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: |