diff --git a/.gitea/workflows/build_device_agent.yaml b/.gitea/workflows/build_device_agent.yaml index d275e04..5c28562 100644 --- a/.gitea/workflows/build_device_agent.yaml +++ b/.gitea/workflows/build_device_agent.yaml @@ -22,23 +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 - with: - patterns: | - apps/device-agent/go.mod - apps/device-agent/go.sum - - - 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 }} - restore-keys: go-device-agent- + cache: true - name: Build all platforms working-directory: apps/device-agent diff --git a/.gitea/workflows/build_server_core.yaml b/.gitea/workflows/build_server_core.yaml index a230d46..afc4e3a 100644 --- a/.gitea/workflows/build_server_core.yaml +++ b/.gitea/workflows/build_server_core.yaml @@ -22,27 +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 - with: - patterns: | - apps/server-core/go.mod - apps/server-core/go.sum - - - 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 }} - restore-keys: go-server-core- - - - name: Download Go modules - working-directory: apps/server-core - run: go mod download + cache: true - name: Generate Swagger docs working-directory: apps/server-core