Use zig from cache if it exists

pull/2/head
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
1 changed files with 4 additions and 1 deletions

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)