Use zig from cache if it exists

This commit is contained in:
Renée Kooi 2019-10-06 15:52:14 +02:00
parent ac8783ec73
commit 44120b6411
No known key found for this signature in database
GPG Key ID: 497533BAECCD642A

View File

@ -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)