From d69f8b95437a2482b4b0442337afef03f0e91f87 Mon Sep 17 00:00:00 2001 From: Zettat123 Date: Tue, 24 Mar 2026 14:26:06 -0600 Subject: [PATCH] action cache --- internal/app/run/runner.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/app/run/runner.go b/internal/app/run/runner.go index 1dec77df..78faf1e8 100644 --- a/internal/app/run/runner.go +++ b/internal/app/run/runner.go @@ -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 "///" // On Windows, Workdir will be like "\\\" 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,