From 44120b6411b6d2f687908ccc17c455fa7b73ede4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Sun, 6 Oct 2019 15:52:14 +0200 Subject: [PATCH] Use zig from cache if it exists --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)