ci: add actions/cache@v4 for Go modules, Go build cache, and npm cache
CI / build-server-core (push) Has been cancelled
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-device-agent (push) Has been cancelled
CI / build-dashboard (push) Has been cancelled
CI / build-docs (push) Has been cancelled
CI / release (push) Has been cancelled

- server-core: Go module + build cache (keyed by go.sum)
- dashboard-ui: npm cache (keyed by package-lock.json)
- device-agent: Go module + build cache (keyed by go.sum)
First run populates cache, subsequent runs restore from cache.
This commit is contained in:
datadunia
2026-06-17 13:39:31 +07:00
parent 8c1b15a78e
commit 6f57540490
3 changed files with 22 additions and 0 deletions
+8
View File
@@ -21,6 +21,14 @@ jobs:
with:
go-version: '1.26'
- uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: device-agent-go-${{ hashFiles('apps/device-agent/go.sum') }}
restore-keys: device-agent-go-
- name: Build all platforms
working-directory: apps/device-agent
shell: bash