feat: add environment variables for Go caching in CI workflow
This commit is contained in:
parent
854f19c11b
commit
066224715a
@ -10,6 +10,9 @@ on:
|
|||||||
env:
|
env:
|
||||||
REGISTRY: gitea.nik4nao.com
|
REGISTRY: gitea.nik4nao.com
|
||||||
IMAGE_PREFIX: gitea.nik4nao.com/nik
|
IMAGE_PREFIX: gitea.nik4nao.com/nik
|
||||||
|
GOPATH: /tmp/go
|
||||||
|
GOMODCACHE: /tmp/go/pkg/mod
|
||||||
|
GOCACHE: /tmp/go-build
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@ -17,6 +20,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: prepare go cache dirs
|
||||||
|
run: mkdir -p "$GOMODCACHE" "$GOCACHE"
|
||||||
|
|
||||||
- uses: actions/setup-go@v6
|
- uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version-file: go.work
|
go-version-file: go.work
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user