action cache

This commit is contained in:
Zettat123 2026-03-24 14:26:06 -06:00
parent 9933ea0d92
commit d69f8b9543
1 changed files with 6 additions and 1 deletions

View File

@ -204,12 +204,17 @@ func (r *Runner) run(ctx context.Context, task *runnerv1.Task, reporter *report.
}
workdir := filepath.FromSlash(fmt.Sprintf("/%s/%s", workdirParent, preset.Repository))
actionCacheDir := filepath.FromSlash(r.cfg.Host.WorkdirParent)
runnerConfig := &runner.Config{
// On Linux, Workdir will be like "/<parent_directory>/<owner>/<repo>"
// On Windows, Workdir will be like "\<parent_directory>\<owner>\<repo>"
Workdir: workdir,
BindWorkdir: r.cfg.Container.BindWorkdir,
ActionCacheDir: filepath.FromSlash(r.cfg.Host.WorkdirParent),
ActionCacheDir: actionCacheDir,
ActionCache: &runner.GoGitActionCache{
Path: actionCacheDir,
},
ReuseContainers: false,
ForcePull: r.cfg.Container.ForcePull,