diff --git a/.gitea/workflows/build_dashboard.yaml b/.gitea/workflows/build_dashboard.yaml index 096bed4..334afd5 100644 --- a/.gitea/workflows/build_dashboard.yaml +++ b/.gitea/workflows/build_dashboard.yaml @@ -21,6 +21,12 @@ jobs: with: node-version: '24' + - uses: actions/cache@v4 + with: + path: ~/.npm + key: dashboard-npm-${{ hashFiles('apps/dashboard-ui/package-lock.json') }} + restore-keys: dashboard-npm- + - name: Install working-directory: apps/dashboard-ui run: npm ci || npm install diff --git a/.gitea/workflows/build_device_agent.yaml b/.gitea/workflows/build_device_agent.yaml index 2452eff..044213c 100644 --- a/.gitea/workflows/build_device_agent.yaml +++ b/.gitea/workflows/build_device_agent.yaml @@ -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 diff --git a/.gitea/workflows/build_server_core.yaml b/.gitea/workflows/build_server_core.yaml index d116864..4b736d8 100644 --- a/.gitea/workflows/build_server_core.yaml +++ b/.gitea/workflows/build_server_core.yaml @@ -21,6 +21,14 @@ jobs: with: go-version: '1.26' + - uses: actions/cache@v4 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + key: server-core-go-${{ hashFiles('apps/server-core/go.sum') }} + restore-keys: server-core-go- + - name: Download Go modules working-directory: apps/server-core run: go mod download