fix(ci): use setup-go built-in cache, remove go-hashfiles and actions/cache from Go builds
CI / server-core-test (push) Has been skipped
CI / device-agent-test (push) Has been skipped
CI / dashboard-test (push) Has been skipped
CI / build-server-core (push) Successful in 3m34s
CI / build-device-agent (push) Successful in 2m20s
CI / build-dashboard (push) Successful in 1m34s
CI / build-docs (push) Successful in 51s
CI / release (push) Successful in 26s

This commit is contained in:
datadunia
2026-06-18 02:23:45 +07:00
parent dad057528c
commit 2d366c4619
2 changed files with 2 additions and 38 deletions
+1 -17
View File
@@ -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
+1 -21
View File
@@ -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