diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 1cc13e8..9d54757 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -14,6 +14,9 @@ jobs: env: # 指定容器将工具缓存路径存放到 /opt/hostedtoolcache,该目录是Gitea Runner的标准工具缓存目录 RUNNER_TOOL_CACHE: /opt/hostedtoolcache + volumes: + # 挂载缓存目录到宿主机,实现持久化 + - /opt/gitea-runner-cache:/opt/hostedtoolcache steps: - name: 检出代码 shell: bash