diff --git a/index.js b/index.js index a2fe990..07ec7dc 100644 --- a/index.js +++ b/index.js @@ -35,7 +35,10 @@ async function main () { return } - const zigPath = await downloadZig(version) + let zigPath = cache.find('zig', version) + if (!zigPath) { + zigPath = await downloadZig(version) + } // Add the `zig` binary to the $PATH actions.addPath(zigPath)