fix(ci): cache Go SDK + disable setup-go built-in cache
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
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
CI / build-server-core (push) Has been cancelled
This commit is contained in:
@@ -22,6 +22,7 @@ jobs:
|
|||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.26'
|
go-version: '1.26'
|
||||||
|
cache: false
|
||||||
|
|
||||||
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
||||||
id: hash-go
|
id: hash-go
|
||||||
@@ -33,6 +34,7 @@ jobs:
|
|||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
|
/toolcache/go
|
||||||
/root/go/pkg/mod
|
/root/go/pkg/mod
|
||||||
/root/.cache/go-build
|
/root/.cache/go-build
|
||||||
key: go-device-agent-${{ steps.hash-go.outputs.hash }}
|
key: go-device-agent-${{ steps.hash-go.outputs.hash }}
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ jobs:
|
|||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.26'
|
go-version: '1.26'
|
||||||
|
cache: false
|
||||||
|
|
||||||
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
||||||
id: hash-go
|
id: hash-go
|
||||||
@@ -33,6 +34,7 @@ jobs:
|
|||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
|
/toolcache/go
|
||||||
/root/go/pkg/mod
|
/root/go/pkg/mod
|
||||||
/root/.cache/go-build
|
/root/.cache/go-build
|
||||||
key: go-server-core-${{ steps.hash-go.outputs.hash }}
|
key: go-server-core-${{ steps.hash-go.outputs.hash }}
|
||||||
|
|||||||
Reference in New Issue
Block a user