From 9d6c2abb9fc718ff197842fc7c2fba1b911a70c2 Mon Sep 17 00:00:00 2001 From: datadunia Date: Wed, 17 Jun 2026 17:58:25 +0700 Subject: [PATCH] fix(ci): cache Go SDK + disable setup-go built-in cache --- .gitea/workflows/build_device_agent.yaml | 2 ++ .gitea/workflows/build_server_core.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.gitea/workflows/build_device_agent.yaml b/.gitea/workflows/build_device_agent.yaml index 24dbec5..d275e04 100644 --- a/.gitea/workflows/build_device_agent.yaml +++ b/.gitea/workflows/build_device_agent.yaml @@ -22,6 +22,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version: '1.26' + cache: false - uses: https://gitea.com/actions/go-hashfiles@v0.0.1 id: hash-go @@ -33,6 +34,7 @@ jobs: - uses: actions/cache@v3 with: path: | + /toolcache/go /root/go/pkg/mod /root/.cache/go-build key: go-device-agent-${{ steps.hash-go.outputs.hash }} diff --git a/.gitea/workflows/build_server_core.yaml b/.gitea/workflows/build_server_core.yaml index 50ffa69..a230d46 100644 --- a/.gitea/workflows/build_server_core.yaml +++ b/.gitea/workflows/build_server_core.yaml @@ -22,6 +22,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version: '1.26' + cache: false - uses: https://gitea.com/actions/go-hashfiles@v0.0.1 id: hash-go @@ -33,6 +34,7 @@ jobs: - uses: actions/cache@v3 with: path: | + /toolcache/go /root/go/pkg/mod /root/.cache/go-build key: go-server-core-${{ steps.hash-go.outputs.hash }}